Files
scriptc/tests/corpus/js-derived-constructor-hoisting.js
Chris Tate df78e89342 Compile three.js scenes, cameras, and geometry
- Compile scene hierarchies, synchronized rotations, and perspective camera transforms.
- Support box and buffer geometry, bounds, normals, and index selection.
- Preserve JavaScript constructor and callback behavior in native LLVM and WASM builds.
2026-09-29 22:49:55 -05:00

15 lines
334 B
JavaScript

class Base { constructor() { this.x = 1; } }
class Child extends Base {
constructor() {
before();
super();
let count = 2;
after();
after();
this.x = count;
function before() { console.log('before super'); }
function after() { count++; console.log('after', count); }
}
}
console.log(new Child().x);