mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-22 05:59:31 +08:00
* Support primitive and function property descriptors * Dispatch literal bracket calls to native class methods * Handle numeric class method keys in bracket calls * Call function values returned by class accessors * Expand native object and array semantics * Keep new corpus fixtures aligned with compiler gates * Lower Object.isFrozen arguments once
5 lines
162 B
TypeScript
5 lines
162 B
TypeScript
// Statically shaped records cannot serve as live checked-dynamic prototypes.
|
|
const base = { indent: 2 };
|
|
const viaRecord = Object.create(base);
|
|
base.indent = 4;
|