Le 19 mars 2013 à 21:53, Andrea Giammarchi <[email protected]> a 
écrit :

> Is there any mechanism in any future specs that does **not** let 
> Object.getPrototypeOf(object) return the prototype and return null instead ?
> 
> Object.hidePrototypeOf(object)

Object.hidePrototypeOf = function(target) {
    return Proxy(obj, {getPrototypeOf: target => null})
}

—Claude
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to