mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-27 06:43:19 +08:00
Object.defineProperty with an object-literal descriptor that declares get or set for a declared class field is refused at compile time with SC2020, naming the field. JavaScript sources report it as a deferred fence, so coverage lists the call. Other accessor descriptors still throw SC2020 when the call runs. The native descriptor test now compiles a data descriptor change on a declared field and compares the output with Node, and checks that an accessor descriptor stays fenced.