diff options
Diffstat (limited to 'test/built-ins/Object/keys/15.2.3.14-5-7.js')
-rw-r--r-- | test/built-ins/Object/keys/15.2.3.14-5-7.js | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/test/built-ins/Object/keys/15.2.3.14-5-7.js b/test/built-ins/Object/keys/15.2.3.14-5-7.js index c855bf7d9..8fb146cd2 100644 --- a/test/built-ins/Object/keys/15.2.3.14-5-7.js +++ b/test/built-ins/Object/keys/15.2.3.14-5-7.js @@ -7,10 +7,8 @@ description: > Object.keys - inherted enumerable data property that is over-ridden by non-enumerable own data property is not defined in returned array -includes: [runTestCase.js] ---*/ -function testcase() { var proto = {}; Object.defineProperty(proto, "prop", { value: 1003, @@ -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); |