summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_6
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-03-27 17:05:14 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-03-27 17:05:14 +0200
commit424ed1b165e50f2e71c082c0c70fcda2a2764d18 (patch)
treede9a183ef7229a056914bab5bcc855ca6cc3c9e9 /js/src/tests/ecma_6
parent8d5ec757ece850fb7ad5c712868f305636e41177 (diff)
downloadUXP-424ed1b165e50f2e71c082c0c70fcda2a2764d18.tar
UXP-424ed1b165e50f2e71c082c0c70fcda2a2764d18.tar.gz
UXP-424ed1b165e50f2e71c082c0c70fcda2a2764d18.tar.lz
UXP-424ed1b165e50f2e71c082c0c70fcda2a2764d18.tar.xz
UXP-424ed1b165e50f2e71c082c0c70fcda2a2764d18.zip
Enable Array.prototype.values
This resolves #85
Diffstat (limited to 'js/src/tests/ecma_6')
-rw-r--r--js/src/tests/ecma_6/Array/values.js20
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 902a66812..52a0b63c6 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);