[Bug 21947] [Custom]: Clarify registering HTMLElement.prototype as a prototype multiple times

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

Scott Miles <sjmiles@chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sjmiles@chromium.org

--- Comment #1 from Scott Miles <sjmiles@chromium.org> ---
I'm confused what you mean about overwriting the 'constructor' property. 

Normally, the constructor of a prototype is the thing that constructed the
prototype, not any constructor it is attached to.

IOW,

  P = {};
  c = P.constructor;

  Foo = function() {};
  Foo.prototype = P;
  assert(P.constructor === c); // true

  Bar = function() {};
  Bar.prototype = P;
  assert(P.constructor === c); // true

Are these prototypes handled differently somehow?

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

Received on Tuesday, 7 May 2013 05:41:08 UTC