mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-11 17:37:33 +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.
20 lines
251 B
JavaScript
20 lines
251 B
JavaScript
class Animal {
|
|
constructor(name) {
|
|
this.name = name;
|
|
}
|
|
|
|
speak() {
|
|
return this.name;
|
|
}
|
|
|
|
get info() {
|
|
return this.name;
|
|
}
|
|
}
|
|
|
|
class Dog extends Animal {
|
|
constructor(name) {
|
|
super(name);
|
|
}
|
|
}
|