-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the res running variable is not consistent with DiffTests
- Loading branch information
NeilKleistGao
committed
Jun 21, 2022
1 parent
4377e08
commit 2f3b510
Showing
2 changed files
with
59 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
:js | ||
42 | ||
//│ // Prelude | ||
//│ let res; | ||
//│ // Query 1 | ||
//│ res = 42; | ||
//│ // End of generated code | ||
//│ res: 42 | ||
//│ = 42 | ||
|
||
:js | ||
def foo = "oops" | ||
//│ // Query 1 | ||
//│ globalThis.foo = "oops"; | ||
//│ res = foo; | ||
//│ // End of generated code | ||
//│ foo: "oops" | ||
//│ = 'oops' | ||
|
||
:js | ||
res | ||
//│ // Query 1 | ||
//│ res = res; | ||
//│ // End of generated code | ||
//│ res: "oops" | ||
//│ = 'oops' | ||
|
||
:js | ||
res = 5 | ||
//│ // Query 1 | ||
//│ globalThis.res1 = 5; | ||
//│ res = res1; | ||
//│ // End of generated code | ||
//│ res: 5 | ||
//│ = 5 | ||
|
||
:js | ||
foo | ||
//│ // Query 1 | ||
//│ res = foo; | ||
//│ // End of generated code | ||
//│ res: "oops" | ||
//│ = 'oops' | ||
|
||
:js | ||
res | ||
//│ // Query 1 | ||
//│ res = res1; | ||
//│ // End of generated code | ||
//│ res: 5 | ||
//│ = 5 | ||
|
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