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.
14 lines
218 B
JavaScript
14 lines
218 B
JavaScript
const anon = function () {
|
|
let x = 1;
|
|
return x;
|
|
};
|
|
|
|
const named = function myFunc() {
|
|
return myFunc;
|
|
};
|
|
|
|
const recursive = function fib(n) {
|
|
if (n <= 1) return n;
|
|
return fib(n - 1) + fib(n - 2);
|
|
};
|