diff options
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-4-576.js')
-rw-r--r-- | test/built-ins/Object/defineProperty/15.2.3.6-4-576.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-576.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-576.js index 73c777777..36c181458 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-576.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-576.js @@ -6,10 +6,8 @@ es5id: 15.2.3.6-4-576 description: > ES5 Attributes - [[Set]] attribute is a function which contains return statement -includes: [runTestCase.js] ---*/ -function testcase() { var obj = {}; var setFunc = function () { @@ -22,6 +20,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'); |