-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Require new
for named constructors
#275
Comments
How does one require new. With a NewTarget that's not undefined? |
Yep, exactly, like https://heycam.github.io/webidl/#es-constructible-interfaces step 2 |
I can't tell you about Safari TP, but in WebKit nightly requires |
tobie
added a commit
to tobie/webidl
that referenced
this issue
Jan 24, 2017
* Extract legacy callback interface objects out of interface objects. Closes whatwg#78. * Clarify that legacy callback interfaces are function objects. * Give them a length property. Closes whatwg#279. Closes whatwg#83. * Require new for Named Constructors. Closes whatwg#275. * Rely on ES abstract operations for defining, named constructors, interface objects, and legacy callback interface objects. * Disallow using the [NoInterfaceObject] on callback interfaces with constants.
tobie
added a commit
to tobie/webidl
that referenced
this issue
Jan 24, 2017
* Extract legacy callback interface objects out of interface objects. Closes whatwg#78. * Clarify that legacy callback interfaces are function objects. * Give them a length property. Closes whatwg#279. Closes whatwg#83. * Require new for Named Constructors. Closes whatwg#275. * Rely on ES abstract operations for defining, named constructors, interface objects, and legacy callback interface objects. * Disallow using the [NoInterfaceObject] on callback interfaces with constants.
tobie
added a commit
to tobie/webidl
that referenced
this issue
Feb 14, 2017
* Extract legacy callback interface objects out of interface objects. Closes whatwg#78. * Clarify that legacy callback interfaces are function objects. * Give them a length property. Closes whatwg#279. Closes whatwg#83. * Require new for Named Constructors. Closes whatwg#275. * Rely on ES abstract operations for defining, named constructors, interface objects, and legacy callback interface objects. * Disallow using the [NoInterfaceObject] on callback interfaces with constants.
tobie
added a commit
to tobie/webidl
that referenced
this issue
Feb 20, 2017
* Extract legacy callback interface objects out of interface objects. Closes whatwg#78. * Clarify that legacy callback interfaces are function objects. * Give them a length property. Closes whatwg#279. Closes whatwg#83. * Require new for Named Constructors. Closes whatwg#275. * Rely on ES abstract operations for defining, named constructors, interface objects, and legacy callback interface objects. * Disallow using the [NoInterfaceObject] on callback interfaces with constants.
tobie
added a commit
to tobie/webidl
that referenced
this issue
Feb 20, 2017
* Extract legacy callback interface objects out of interface objects. Closes whatwg#78. * Clarify that legacy callback interfaces are function objects. * Give them a length property. Closes whatwg#279. Closes whatwg#83. * Require new for Named Constructors. Closes whatwg#275. * Rely on ES abstract operations for defining, named constructors, interface objects, and legacy callback interface objects. * Disallow using the [NoInterfaceObject] on callback interfaces with constants.
tobie
added a commit
that referenced
this issue
Feb 20, 2017
* Extract legacy callback interface objects out of interface objects. Closes #78. * Clarify that legacy callback interfaces are function objects. * Give them a length property. Closes #279. Closes #83. * Require new for Named Constructors. Closes #275. * Rely on ES abstract operations for defining named constructors, interface objects, and legacy callback interface objects. * Disallow using [NoInterfaceObject] on callback interfaces with constants. * Don't require an interface prototype object for constants. Callback interfaces do not have an interface prototype object. Their constants sit on the legacy callback interface object itself. Closes #281. Closes #283.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At least Gecko and Blink require
new
for them. Edge does not, but Edge also does not requirenew
for un-named constructors.We should test Safari TP to be sure, but it seems like things have moved in this direction, even though to me it would be OK for "named constructors" to not require
new
since they're fancy factory functions in disguise.The text was updated successfully, but these errors were encountered: