1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-08 05:27:14 +09:00
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);
});