Re: [w3c/webcomponents] HTML element constructors need to Get(newTarget, "Prototype") (#560)

It's not configurable but writable in regular function but it could do anything because you can create a Proxy that traps `Get` to `prototype`.  e.g.
```js
customElements.define('bad-element', new Proxy(class extends HTMLElement {}, {
  get: function (target, name) {
    if (name == 'prototype')
      throw 'stuff';
  }
}));
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/560#issuecomment-243985269

Received on Thursday, 1 September 2016 06:11:00 UTC