LibJS: Remove [[VarNames]] from GlobalEnvironment

This is a normative change in the ECMA-262 spec. See:
ed75310
This commit is contained in:
Timothy Flynn 2025-04-28 17:02:01 -04:00 committed by Tim Flynn
commit 15faaeb2bb
Notes: github-actions[bot] 2025-04-29 11:34:32 +00:00
5 changed files with 35 additions and 51 deletions

View file

@ -0,0 +1,6 @@
eval("var foo;");
evaluateSource("let foo = 1;");
test("redeclaration of variable in global scope succeeded", () => {
expect(foo).toBe(1);
});