Skip to content

Commit

Permalink
Fix analysis issues (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
osa1 authored Sep 17, 2024
1 parent 090d3d1 commit d38eee8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
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

0 comments on commit d38eee8

Please sign in to comment.