diff options
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-4-402.js')
-rw-r--r-- | test/built-ins/Object/defineProperty/15.2.3.6-4-402.js | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-402.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-402.js index 976842919..1ef35f2bc 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-402.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-402.js @@ -6,11 +6,8 @@ es5id: 15.2.3.6-4-402 description: > ES5 Attributes - [[Value]] attribute of inherited property of [[Prototype]] internal property is correct (String instance) -includes: [runTestCase.js] ---*/ -function testcase() { - try { Object.defineProperty(String.prototype, "prop", { value: 1001, writable: true, @@ -19,9 +16,5 @@ function testcase() { }); var strObj = new String(); - return !strObj.hasOwnProperty("prop") && strObj.prop === 1001; - } finally { - delete String.prototype.prop; - } - } -runTestCase(testcase); +assert.sameValue(strObj.hasOwnProperty("prop"), false, 'strObj.hasOwnProperty("prop")'); +assert.sameValue(strObj.prop, 1001, 'strObj.prop'); |