mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-13 02:16:52 +02:00
Add 39 test cases exercising AST dump output and scope analysis. Tests cover local/global identifier marking, eval/with poisoning, destructuring, closures, hoisting, classes, generators, and more.
13 lines
159 B
JavaScript
13 lines
159 B
JavaScript
"use strict";
|
|
|
|
function strict_function(a, b) {
|
|
let c = a + b;
|
|
return c;
|
|
}
|
|
|
|
function inner_strict() {
|
|
"use strict";
|
|
let x = 1;
|
|
return x;
|
|
}
|