diff options
Diffstat (limited to 'test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_37.js')
-rw-r--r-- | test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_37.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_37.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_37.js index c9fd7a852..1938b5a2c 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_37.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_37.js @@ -6,14 +6,9 @@ es5id: 8.12.1-1_37 description: > Properties - [[HasOwnProperty]] (configurable, enumerable own getter/setter property) -includes: [runTestCase.js] ---*/ -function testcase() { - var o = {}; Object.defineProperty(o, "foo", {get: function() {return 42;}, set: function() {;}, enumerable:true, configurable:true}); - return o.hasOwnProperty("foo"); -} -runTestCase(testcase); +assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); |