diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-03-27 17:05:14 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-03-27 17:05:14 +0200 |
commit | c144a49e5577a556ac0e952a37ada80e394a6219 (patch) | |
tree | de9a183ef7229a056914bab5bcc855ca6cc3c9e9 /js/src/tests | |
parent | 4d3de12fa82163c9d203b1365c61ee4bb8920e95 (diff) | |
download | uxp-c144a49e5577a556ac0e952a37ada80e394a6219.tar.gz |
Enable Array.prototype.values
This resolves #85
Diffstat (limited to 'js/src/tests')
-rw-r--r-- | js/src/tests/ecma_6/Array/values.js | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/js/src/tests/ecma_6/Array/values.js b/js/src/tests/ecma_6/Array/values.js index 902a668123..52a0b63c6c 100644 --- a/js/src/tests/ecma_6/Array/values.js +++ b/js/src/tests/ecma_6/Array/values.js @@ -1,20 +1,18 @@ /* Any copyright is dedicated to the Public Domain. * http://creativecommons.org/licenses/publicdomain/ */ -if (Array.prototype.values) { - assertEq(Array.prototype.values, Array.prototype[Symbol.iterator]); - assertEq(Array.prototype.values.name, "values"); - assertEq(Array.prototype.values.length, 0); +assertEq(Array.prototype.values, Array.prototype[Symbol.iterator]); +assertEq(Array.prototype.values.name, "values"); +assertEq(Array.prototype.values.length, 0); - function valuesUnscopeable() { - var values = "foo"; - with ([1, 2, 3]) { - assertEq(indexOf, Array.prototype.indexOf); - assertEq(values, "foo"); - } +function valuesUnscopeable() { + var values = "foo"; + with ([1, 2, 3]) { + assertEq(indexOf, Array.prototype.indexOf); + assertEq(values, "foo"); } - valuesUnscopeable(); } +valuesUnscopeable(); if (typeof reportCompare === 'function') reportCompare(0, 0); |