You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I think "the value of new.target" sufficiently captures all the guaranteed semantics about this parameter, and anything else after it is just us trying to be helpful and talking about what happens in the general case. Normally object creation uses new.target.prototype as the prototype so this is certainly not wrong, but I would not be opposed to changing it to your suggestion.
Josh-Cena
removed
the
needs triage
Triage needed by staff and/or partners. Automatically applied when an issue is opened.
label
Sep 16, 2024
MDN URL
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/construct#newtarget
What specific section or headline is this issue about?
Parameters: newTarget
What information was incorrect, unhelpful, or incomplete?
"which usually specifies the prototype of the returned object." - this is incorrect.
What did you expect to see?
Something along the lines of "the function you called
new
with".Do you have any supporting links, references, or citations?
Do you have anything more you want to share?
No response
The text was updated successfully, but these errors were encountered: