just for topic and documentation sake ...
On Mon, Apr 7, 2014 at 11:02 AM, John Barton <[email protected]> wrote:
>
> on platforms without setPrototypeOf(), it's advantages are not relevant.
> jjb
>
>
this works in Firefox since quite a while, and probably some other engine
that supports `__proto__` as non poisoned and configurable as every other
`Object.prototype` is:
```javascript
Object.setPrototypeOf || (
Object.setPrototypeOf = function(set){
delete Object.prototype.__proto__;
return function setPrototypeOf(o, p) {
set.call(o, p);
return o;
};
}(
Object.getOwnPropertyDescriptor(
Object.prototype, '__proto__'
).set
)
);
```
Best Regards
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss