summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/every/15.4.4.16-7-b-2.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/every/15.4.4.16-7-b-2.js')
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-b-2.js30
1 files changed, 15 insertions, 15 deletions
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-2.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-2.js
index fca306466..56c5b404f 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-2.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-2.js
@@ -7,22 +7,22 @@ es5id: 15.4.4.16-7-b-2
description: Array.prototype.every - added properties in step 2 are visible here
---*/
- function callbackfn(val, idx, obj) {
- if (idx === 2 && val === "length") {
- return false;
- } else {
- return true;
- }
- }
+function callbackfn(val, idx, obj) {
+ if (idx === 2 && val === "length") {
+ return false;
+ } else {
+ return true;
+ }
+}
- var arr = { };
+var arr = {};
- Object.defineProperty(arr, "length", {
- get: function () {
- arr[2] = "length";
- return 3;
- },
- configurable: true
- });
+Object.defineProperty(arr, "length", {
+ get: function() {
+ arr[2] = "length";
+ return 3;
+ },
+ configurable: true
+});
assert.sameValue(Array.prototype.every.call(arr, callbackfn), false, 'Array.prototype.every.call(arr, callbackfn)');