-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
31 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
$ ast_gen input-code-1.js -o out; cat out/code/input-code-1.js; echo; rm -fr out; | ||
ast_gen: internal error, uncaught exception: | ||
$ ast_gen input-code-1.js -o out 2>&1 | grep "Failure" && cat out/code/input-code-1.js && echo && rm -fr out | ||
Failure("[ERROR] Cannot process spread array element") | ||
|
||
cat: out/code/input-code-1.js: No such file or directory | ||
|
||
[1] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
$ ast_gen input-code-1.js -o out; cat out/code/input-code-1.js; echo; rm -fr out; | ||
let foo; | ||
foo = function (index) { | ||
yield index; | ||
let v1; | ||
v1 = yield index; | ||
} | ||
|
||
$ ast_gen input-code-2.js -o out; cat out/code/input-code-2.js; echo; rm -fr out; | ||
let foo; | ||
foo = function (index) { | ||
let v1; | ||
v1 = index; | ||
let v2; | ||
v2 = index; | ||
index = index + 1; | ||
yield v1; | ||
v1 = yield v2; | ||
} | ||
|