mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
LibJS: Remove [[VarNames]] from GlobalEnvironment
This is a normative change in the ECMA-262 spec. See:
ed75310
This commit is contained in:
parent
9c85a16aeb
commit
15faaeb2bb
Notes:
github-actions[bot]
2025-04-29 11:34:32 +00:00
Author: https://github.com/trflynn89
Commit: 15faaeb2bb
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4514
5 changed files with 35 additions and 51 deletions
6
Libraries/LibJS/Tests/eval-redeclaration.js
Normal file
6
Libraries/LibJS/Tests/eval-redeclaration.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
eval("var foo;");
|
||||
evaluateSource("let foo = 1;");
|
||||
|
||||
test("redeclaration of variable in global scope succeeded", () => {
|
||||
expect(foo).toBe(1);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue