Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Fix analysis issues #160

Merged
merged 2 commits into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/src/frame.dart
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,12 @@ class Frame {

/// Parses a Firefox 'eval' or 'function' stack frame.
///
/// for example:
/// For example:
///
/// ```
/// anonymous/<@https://example.com/stuff.js line 693 > Function:3:40
/// anonymous/<@https://example.com/stuff.js line 693 > eval:3:40
/// ```
factory Frame._parseFirefoxEval(String frame) =>
_catchFormatException(frame, () {
final match = _firefoxEvalLocation.firstMatch(frame);
Expand Down
9 changes: 6 additions & 3 deletions lib/src/trace.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,12 @@ final _v8TraceLine = RegExp(r' ?at ');
///
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/stack
///
/// These stack traces looks like:
/// anonymous/<@https://example.com/stuff.js line 693 > Function:3:40
/// anonymous/<@https://example.com/stuff.js line 693 > eval:3:40
/// These stack traces look like:
///
/// ````
/// anonymous/<@https://example.com/stuff.js line 693 > Function:3:40
/// anonymous/<@https://example.com/stuff.js line 693 > eval:3:40
/// ````
final _firefoxEvalTrace = RegExp(r'@\S+ line \d+ >.* (Function|eval):\d+:\d+');

/// A RegExp to match Firefox and Safari's stack traces.
Expand Down