-
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
47 additions
and
16 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,19 @@ | ||
$ 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: | ||
Failure("[ERROR] Cannot process spread array element") | ||
|
||
Raised at Stdlib.failwith in file "stdlib.ml", line 29, characters 17-33 | ||
Called from Stdlib__List.mapi in file "list.ml", line 93, characters 15-21 | ||
Called from Stdlib__List.mapi in file "list.ml" (inlined), line 100, characters 15-25 | ||
Called from Ast__Normalize.normalize_expression in file "lib/ast/normalize.ml", line 512, characters 22-66 | ||
Called from Ast__Normalize.normalize_assignment in file "lib/ast/normalize.ml", line 625, characters 30-50 | ||
Called from Ast__Normalize.normalize_expression in file "lib/ast/normalize.ml", line 497, characters 26-103 | ||
Called from Ast__Normalize.normalize_statement in file "lib/ast/normalize.ml", line 284, characters 21-47 | ||
Called from Stdlib__List.map in file "list.ml", line 87, characters 15-19 | ||
Called from Ast__Normalize.program in file "lib/ast/normalize.ml", line 49, characters 26-83 | ||
Called from Dune__exe__Main.main.(fun) in file "bin/main.ml", line 44, characters 25-60 | ||
Called from Stdlib__List.iter in file "list.ml", line 112, characters 12-15 | ||
Called from Dune__exe__Main.main in file "bin/main.ml", line 35, characters 2-1023 | ||
Called from Cmdliner_term.app.(fun) in file "cmdliner_term.ml", line 24, characters 19-24 | ||
Called from Cmdliner_eval.run_parser in file "cmdliner_eval.ml", line 35, characters 37-44 | ||
cat: out/code/input-code-1.js: No such file or directory | ||
|
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; | ||
} | ||
|