diff options
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-4-449.js')
-rw-r--r-- | test/built-ins/Object/defineProperty/15.2.3.6-4-449.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-449.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-449.js index 3b623861f..8454c88fe 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-449.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-449.js @@ -7,10 +7,8 @@ description: > ES5 Attributes - [[Get]] attribute of accessor property ([[Get]] is undefined, [[Set]] is undefined, [[Enumerable]] is false, [[Configurable]] is false) is undefined -includes: [runTestCase.js] ---*/ -function testcase() { var obj = {}; Object.defineProperty(obj, "prop", { @@ -23,6 +21,5 @@ function testcase() { var propertyDefineCorrect = obj.hasOwnProperty("prop"); var desc = Object.getOwnPropertyDescriptor(obj, "prop"); - return propertyDefineCorrect && typeof desc.get === "undefined"; - } -runTestCase(testcase); +assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); +assert.sameValue(typeof desc.get, "undefined", 'typeof desc.get'); |