Skip to content

Commit f6003a0

Browse files
committed
error.stack has no message in FF
1 parent bf3dd03 commit f6003a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

edit/editor-worker.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@
7979
return collectStylelintResults(res, opts);
8080
} catch (e) {
8181
const fatal = pass === -1 ||
82-
!pass && !/^CssSyntaxError:.+?Unnecessary curly bracket/.test(e.stack) ||
83-
pass && !/^CssSyntaxError:.+?Unknown word[\s\S]*?\.decl\s/.test(e.stack);
82+
!pass && !/^CssSyntaxError:.+?Unnecessary curly bracket/.test(e) ||
83+
pass && !/^CssSyntaxError:.+?Unknown word/.test(e) && /\.decl\s/.test(e.stack);
8484
if (fatal) {
8585
return [{
8686
from: {line: e.line - 1, ch: e.column - 1},

0 commit comments

Comments
 (0)