On Scope And Prototype Security

Claude Pache claude.pache at gmail.com
Tue Mar 19 14:34:27 PDT 2013


Le 19 mars 2013 à 21:53, Andrea Giammarchi <andrea.giammarchi at gmail.com> 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


More information about the es-discuss mailing list