mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-02 00:25:34 +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
8 lines
446 B
Plaintext
8 lines
446 B
Plaintext
object-create-fences.ts:3:19 - error SC2020: 'Object.create over '{ indent: number }' prototypes' is part of the standard library types but has no scriptc lowering yet
|
|
|
|
2 | const base = { indent: 2 };
|
|
3 | const viaRecord = Object.create(base);
|
|
| ^~~~~~~~~~~~~~~~~~~
|
|
4 | base.indent = 4;
|
|
|
|
hint: the type checker sees the full standard library, but only the supported surface compiles (https://scriptc.dev/limitations) |