This repository was archived by the owner on Feb 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff 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);
Original file line number Diff line number Diff 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+ /// ````
3740final _firefoxEvalTrace = RegExp (r'@\S+ line \d+ >.* (Function|eval):\d+:\d+' );
3841
3942/// A RegExp to match Firefox and Safari's stack traces.
You can’t perform that action at this time.
0 commit comments