[Bug 20493] New: [Custom]: Custom constructor setup in the spec is wrong

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

            Bug ID: 20493
           Summary: [Custom]: Custom constructor setup in the spec is
                    wrong
    Classification: Unclassified
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Component Model
          Assignee: dglazkov@chromium.org
          Reporter: bzbarsky@mit.edu
        QA Contact: public-webapps-bugzilla@w3.org
            Blocks: 14968

>"Set PROTOTYPE as the prototype property on CONSTRUCTOR
>Set CONSTRUCTOR as the constructor property on PROTOTYPE."

Those should be defining properties, not setting them.  Furthermore, those
properties should have some non-default property attributes (which you have to
think about once you start defining properties).  In particular, the
.constructor of the prototype should not be enumerable (because otherwise
enumeration on all the elements involved would see it!), and the .prototype of
the constructor should probably not be configurable, writable, or enumerable
(which is how WebIDL .prototype and standard class .prototype work), though
this part we could at least argue about.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Saturday, 22 December 2012 00:55:26 UTC