mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-11 09:27:00 +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.
6 lines
116 B
JavaScript
6 lines
116 B
JavaScript
function destructure() {
|
|
let [a, b] = [1, 2];
|
|
let { x, y: z } = { x: 3, y: 4 };
|
|
return a + b + x + z;
|
|
}
|