diff options
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-4-32.js')
-rw-r--r-- | test/built-ins/Object/defineProperty/15.2.3.6-4-32.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-32.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-32.js index 337157906..858591bc5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-32.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-32.js @@ -6,10 +6,8 @@ es5id: 15.2.3.6-4-32 description: > Object.defineProperty - 'name' is an inherited accessor property without a get function (8.12.9 step 1) -includes: [runTestCase.js] ---*/ -function testcase() { var proto = {}; Object.defineProperty(proto, "foo", { set: function () { }, @@ -23,6 +21,6 @@ function testcase() { Object.defineProperty(obj, "foo", { configurable: true }); - return obj.hasOwnProperty("foo") && typeof obj.foo === "undefined"; - } -runTestCase(testcase); + +assert(obj.hasOwnProperty("foo"), 'obj.hasOwnProperty("foo") !== true'); +assert.sameValue(typeof obj.foo, "undefined", 'typeof obj.foo'); |