W3C home > Mailing lists > Public > public-webapps-bugzilla@w3.org > December 2012

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

From: <bugzilla@jessica.w3.org>
Date: Sat, 22 Dec 2012 00:55:24 +0000
To: public-webapps-bugzilla@w3.org
Message-ID: <bug-20493-2532@http.www.w3.org/Bugs/Public/>

            Bug ID: 20493
           Summary: [Custom]: Custom constructor setup in the spec is
    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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:04:28 UTC