|
@@ -1,14 +1,11 @@
|
|
|
-*** Running test #1 (0): Change Object.prototype.__proto__ value
|
|
|
|
|
-Object.prototype.__proto__ = null
|
|
|
|
|
-PASSED
|
|
|
|
|
-*** Running test #2 (1): seal/freeze Object.prototype
|
|
|
|
|
|
|
+*** Running test #1 (0): seal/freeze Object.prototype
|
|
|
Object.seal(Object.prototype)
|
|
Object.seal(Object.prototype)
|
|
|
Object.freeze(Object.prototype)
|
|
Object.freeze(Object.prototype)
|
|
|
PASSED
|
|
PASSED
|
|
|
-*** Running test #3 (2): delete Object.prototype.__proto__
|
|
|
|
|
|
|
+*** Running test #2 (1): delete Object.prototype.__proto__
|
|
|
delete Object.prototype.__proto__
|
|
delete Object.prototype.__proto__
|
|
|
PASSED
|
|
PASSED
|
|
|
-*** Running test #4 (3): DefineOwnProperty with missing/different attribute set
|
|
|
|
|
|
|
+*** Running test #3 (2): DefineOwnProperty with missing/different attribute set
|
|
|
Object.defineProperty(Object.prototype, "__proto__", {})
|
|
Object.defineProperty(Object.prototype, "__proto__", {})
|
|
|
Object.defineProperty(Object.prototype, "__proto__", {enumerable: false})
|
|
Object.defineProperty(Object.prototype, "__proto__", {enumerable: false})
|
|
|
Object.defineProperty(Object.prototype, "__proto__", {configurable: true})
|
|
Object.defineProperty(Object.prototype, "__proto__", {configurable: true})
|
|
@@ -18,6 +15,6 @@ Object.defineProperty(Object.prototype, "__proto__", {enumerable: false, configu
|
|
|
Object.defineProperty(Object.prototype, "__proto__", {value: 234, writable: true, enumerable: false, configurable: true})
|
|
Object.defineProperty(Object.prototype, "__proto__", {value: 234, writable: true, enumerable: false, configurable: true})
|
|
|
Object.defineProperty(Object.prototype, "__proto__", {set: function () { return "custom setter" }, enumerable: false, configurable: true})
|
|
Object.defineProperty(Object.prototype, "__proto__", {set: function () { return "custom setter" }, enumerable: false, configurable: true})
|
|
|
PASSED
|
|
PASSED
|
|
|
-*** Running test #5 (4): Change Object.prototype.__proto__ getter or setter
|
|
|
|
|
|
|
+*** Running test #4 (3): Change Object.prototype.__proto__ getter or setter
|
|
|
PASSED
|
|
PASSED
|
|
|
-Summary of tests: total executed: 5; passed: 5; failed: 0
|
|
|
|
|
|
|
+Summary of tests: total executed: 4; passed: 4; failed: 0
|