diff options
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-4-398.js')
-rw-r--r-- | test/built-ins/Object/defineProperty/15.2.3.6-4-398.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-398.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-398.js index 1e930b39f..c3aadc108 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-398.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-398.js @@ -4,10 +4,8 @@ /*--- es5id: 15.2.3.6-4-398 description: ES5 Attributes - [[Value]] attribute of data property is -Infinity -includes: [runTestCase.js] ---*/ -function testcase() { var obj = {}; Object.defineProperty(obj, "prop", { @@ -16,6 +14,5 @@ function testcase() { var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - return obj.prop === -Infinity && desc.value === -Infinity; - } -runTestCase(testcase); +assert.sameValue(obj.prop, -Infinity, 'obj.prop'); +assert.sameValue(desc.value, -Infinity, 'desc.value'); |