Commit Graph
1 Commits
Author SHA1 Message Date
Chris Tate 6197a45ab0 Refuse arguments through class values of ctor-less stream subclasses
A class without a constructor that extends a stream class or
EventEmitter inherits the runtime constructor, which takes no arguments
here. Direct construction with arguments already reported that, but
construction through the class's value (`new registry.upper({ ... })`)
completed the arguments against the empty inherited signature and
dropped them. Both paths now share refuseInheritedBuiltinCtorArgs, so
the class-value path reports at the first argument with the same
message.
2026-10-20 01:48:22 -05:00