Skip to content

Commit c4f1f7c

Browse files
committed
update output
1 parent 40e5796 commit c4f1f7c

File tree

4 files changed

+31
-21
lines changed

4 files changed

+31
-21
lines changed

jscomp/test/build.ninja

Lines changed: 6 additions & 1 deletion
Large diffs are not rendered by default.

jscomp/test/lazy_test.js

Lines changed: 15 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/es6/genlex.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -627,10 +627,11 @@ function make_lexer(keywords) {
627627
return comment(strm__);
628628
}
629629
}
630-
throw {
631-
RE_EXN_ID: Stream.Failure,
632-
Error: new Error()
633-
};
630+
throw new Error(Stream.Failure, {
631+
cause: {
632+
RE_EXN_ID: Stream.Failure
633+
}
634+
});
634635
case 42 :
635636
Stream.junk(strm__);
636637
while(true) {

lib/js/genlex.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -627,10 +627,11 @@ function make_lexer(keywords) {
627627
return comment(strm__);
628628
}
629629
}
630-
throw {
631-
RE_EXN_ID: Stream.Failure,
632-
Error: new Error()
633-
};
630+
throw new Error(Stream.Failure, {
631+
cause: {
632+
RE_EXN_ID: Stream.Failure
633+
}
634+
});
634635
case 42 :
635636
Stream.junk(strm__);
636637
while(true) {

0 commit comments

Comments
 (0)