diff options
Diffstat (limited to 'test/built-ins/Object/keys/15.2.3.14-5-10.js')
-rw-r--r-- | test/built-ins/Object/keys/15.2.3.14-5-10.js | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/test/built-ins/Object/keys/15.2.3.14-5-10.js b/test/built-ins/Object/keys/15.2.3.14-5-10.js index 1464abd16..7c78da96c 100644 --- a/test/built-ins/Object/keys/15.2.3.14-5-10.js +++ b/test/built-ins/Object/keys/15.2.3.14-5-10.js @@ -7,10 +7,8 @@ description: > Object.keys - inherted enumerable accessor property that is over-ridden by non-enumerable own accessor property is not defined in returned array -includes: [runTestCase.js] ---*/ -function testcase() { var proto = {}; Object.defineProperty(proto, "prop", { get: function () { }, @@ -30,11 +28,5 @@ function testcase() { var arr = Object.keys(obj); for (var p in arr) { - if (arr[p] === "prop") { - return false; - } + assert.notSameValue(arr[p], "prop", 'arr[p]'); } - - return true; - } -runTestCase(testcase); |