summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_6
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-03-28 11:32:03 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-03-28 11:32:03 +0200
commit19b934070704c1ed12d3a75bc97752831d23f087 (patch)
tree9c241ca9940851952b99e1310e908f2dd5a49090 /js/src/tests/ecma_6
parente57cba2682d240e0a8b764920bdb22835c850a52 (diff)
downloadUXP-19b934070704c1ed12d3a75bc97752831d23f087.tar
UXP-19b934070704c1ed12d3a75bc97752831d23f087.tar.gz
UXP-19b934070704c1ed12d3a75bc97752831d23f087.tar.lz
UXP-19b934070704c1ed12d3a75bc97752831d23f087.tar.xz
UXP-19b934070704c1ed12d3a75bc97752831d23f087.zip
Revert "Enable Array.prototype.values"
This reverts commit 424ed1b165e50f2e71c082c0c70fcda2a2764d18.
Diffstat (limited to 'js/src/tests/ecma_6')
-rw-r--r--js/src/tests/ecma_6/Array/values.js20
1 files changed, 11 insertions, 9 deletions
diff --git a/js/src/tests/ecma_6/Array/values.js b/js/src/tests/ecma_6/Array/values.js
index 52a0b63c6..902a66812 100644
--- a/js/src/tests/ecma_6/Array/values.js
+++ b/js/src/tests/ecma_6/Array/values.js
@@ -1,18 +1,20 @@
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/licenses/publicdomain/ */
-assertEq(Array.prototype.values, Array.prototype[Symbol.iterator]);
-assertEq(Array.prototype.values.name, "values");
-assertEq(Array.prototype.values.length, 0);
+if (Array.prototype.values) {
+ 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);