summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_6/Array
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/ecma_6/Array')
-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);