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