[Bug 25025] New: Named creators with [OverrideBuiltins] don't work right as the spec is written now

https://www.w3.org/Bugs/Public/show_bug.cgi?id=25025

            Bug ID: 25025
           Summary: Named creators with [OverrideBuiltins] don't work
                    right as the spec is written now
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebIDL
          Assignee: cam@mcc.id.au
          Reporter: bzbarsky@mit.edu
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-script-coord@w3.org

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...

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Wednesday, 12 March 2014 21:20:44 UTC