ladybird/Libraries/LibJS/Tests/eval-redeclaration.js
Timothy Flynn 15faaeb2bb LibJS: Remove [[VarNames]] from GlobalEnvironment
This is a normative change in the ECMA-262 spec. See:
ed75310
2025-04-29 07:33:08 -04:00

6 lines
148 B
JavaScript

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