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