diff options
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-4-572.js')
-rw-r--r-- | test/built-ins/Object/defineProperty/15.2.3.6-4-572.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-572.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-572.js index 4606e17c1..74d43c55a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-572.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-572.js @@ -6,10 +6,8 @@ es5id: 15.2.3.6-4-572 description: > ES5 Attributes - [[Set]] attribute is a function which has zero argument -includes: [runTestCase.js] ---*/ -function testcase() { var obj = {}; var setFunc = function () { }; @@ -20,6 +18,5 @@ function testcase() { var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - return obj.hasOwnProperty("prop") && desc.set === setFunc; - } -runTestCase(testcase); +assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); +assert.sameValue(desc.set, setFunc, 'desc.set'); |