mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-02 08:35:07 +08:00
- 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.
15 lines
334 B
JavaScript
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);
|