JSON.parse('{"__proto__": null}')
var o = JSON.parse('{"__proto__": null}'); console.log( Object.prototype.hasOwnProperty.call(o, "__proto__"), Object.getPrototypeOf(o), o instanceof Object, Object.getPrototypeOf(o) === Object.prototype );
Browser | hasOwnProperty | instanceof Object | Object.getPrototypeOf() |
---|---|---|---|
Firefox | true | true | Object.prototype |
GoogleChrome | false | false | null |
Safari | true | true | null |
Opera | true | true | Object.prototype |
IE8 | true | true | *1 |
v8エンジンさん、JavaScriptCoreさん...