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