diff options
Diffstat (limited to 'test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_18.js')
-rw-r--r-- | test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_18.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_18.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_18.js index ac3d45e67..8b8120c5c 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_18.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_18.js @@ -6,15 +6,10 @@ es5id: 8.12.1-1_18 description: > Properties - [[HasOwnProperty]] (writable, configurable, non-enumerable inherited value property) -includes: [runTestCase.js] ---*/ -function testcase() { - var base = {}; Object.defineProperty(base, "foo", {value: 42, writable:true, configurable:true}); var o = Object.create(base); - return o.hasOwnProperty("foo")===false; -} -runTestCase(testcase); +assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); |