summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/defineProperty/15.2.3.6-3-167-1.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-3-167-1.js')
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-167-1.js12
1 files changed, 3 insertions, 9 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-167-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-167-1.js
index 5c2aff8b2..e5227ee79 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-167-1.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-167-1.js
@@ -7,12 +7,10 @@ description: >
Object.defineProperty - 'Attributes' is a String object that uses
Object's [[Get]] method to access the 'writable' property of
prototype object (8.10.5 step 6.b)
-includes: [runTestCase.js]
---*/
-function testcase() {
var obj = {};
- try {
+
String.prototype.writable = true;
var strObj = new String("abc");
@@ -24,9 +22,5 @@ function testcase() {
var afterWrite = (obj.property === "isWritable");
- return beforeWrite === true && afterWrite === true;
- } finally {
- delete String.prototype.writable;
- }
- }
-runTestCase(testcase);
+assert.sameValue(beforeWrite, true, 'beforeWrite');
+assert.sameValue(afterWrite, true, 'afterWrite');