This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25025 - Named creators with [OverrideBuiltins] don't work right as the spec is written now
Summary: Named creators with [OverrideBuiltins] don't work right as the spec is writte...
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: WebIDL (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Boris Zbarsky
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on: 26521
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-12 21:20 UTC by Boris Zbarsky
Modified: 2015-03-12 15:46 UTC (History)
2 users (show)

See Also:


Attachments

Description Boris Zbarsky 2014-03-12 21:20:42 UTC
Consider an interface with a named creator and [OverrideBuiltins] (in fact, the only interface with a named creator in the platform has that extended attribute).

When a set happens for a currently-nonexistent, per current spec [[GetOwnProperty]] will return undefined.  Then the ES impl will go up the proto chain looking for a setter, and if found call it.

That doesn't seem correct; we actually want to call the named creator in this case.

We should probably just override [[Put]] when we have a named creator.  And maybe transition all this stuff to the ES6 MOP in the process...