Skip to content

Commit 145be47

Browse files
authored
Fix analysis issues (dart-archive/stack_trace#160)
1 parent 096e2dd commit 145be47

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

pkgs/stack_trace/lib/src/frame.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,12 @@ class Frame {
218218

219219
/// Parses a Firefox 'eval' or 'function' stack frame.
220220
///
221-
/// for example:
221+
/// For example:
222+
///
223+
/// ```
222224
/// anonymous/<@https://example.com/stuff.js line 693 > Function:3:40
223225
/// anonymous/<@https://example.com/stuff.js line 693 > eval:3:40
226+
/// ```
224227
factory Frame._parseFirefoxEval(String frame) =>
225228
_catchFormatException(frame, () {
226229
final match = _firefoxEvalLocation.firstMatch(frame);

pkgs/stack_trace/lib/src/trace.dart

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,12 @@ final _v8TraceLine = RegExp(r' ?at ');
3131
///
3232
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/stack
3333
///
34-
/// These stack traces looks like:
35-
/// anonymous/<@https://example.com/stuff.js line 693 > Function:3:40
36-
/// anonymous/<@https://example.com/stuff.js line 693 > eval:3:40
34+
/// These stack traces look like:
35+
///
36+
/// ````
37+
/// anonymous/<@https://example.com/stuff.js line 693 > Function:3:40
38+
/// anonymous/<@https://example.com/stuff.js line 693 > eval:3:40
39+
/// ````
3740
final _firefoxEvalTrace = RegExp(r'@\S+ line \d+ >.* (Function|eval):\d+:\d+');
3841

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

0 commit comments

Comments
 (0)