mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-07 08:33:50 +08:00
Construction from checked-dynamic code (`new F(options)` with F an untyped value holding a ctor-less subclass of a stream class or EventEmitter) dispatched to the class's constructor and completed the arguments against the inherited signature, which takes none here, so the options were dropped. The checked construction dispatch now reports those arguments at run time with the message typed construction reports at compile time, located at the class: a fixed argument count refuses at the call, and a spread call refuses when its argument list is not empty.