-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #246 from jow-/fix-upvalue-resolve
vm: resolve upvalues before pushing them onto the stack
- Loading branch information
Showing
5 changed files
with
65 additions
and
118 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Commit e5fe6b1 ("treewide: refactor vector usage code") accidentially dropped | ||
the upvalue resolving logic from uc_vm_stack_push(), leading to unresolved | ||
upvalues leaking into the script execution context. | ||
|
||
-- File test.uc -- | ||
export let obj = { foo: true, bar: false }; | ||
-- End -- | ||
|
||
-- Testcase -- | ||
import * as test from "./files/test.uc"; | ||
|
||
printf("%.J\n", [ | ||
type(test.obj), | ||
test.obj.foo | ||
]); | ||
-- End -- | ||
|
||
-- Args -- | ||
-R | ||
-- End -- | ||
|
||
-- Expect stdout -- | ||
[ | ||
"object", | ||
true | ||
] | ||
-- End -- |
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