summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/every/15.4.4.16-7-b-6.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/every/15.4.4.16-7-b-6.js')
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-b-6.js42
1 files changed, 22 insertions, 20 deletions
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-6.js
index 4a71a8389..27663980c 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-6.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-6.js
@@ -9,26 +9,28 @@ description: >
current position are visited on an Array-like object
---*/
- function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 6.99) {
- return false;
- } else {
- return true;
- }
- }
- var arr = { length: 2 };
+function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 6.99) {
+ return false;
+ } else {
+ return true;
+ }
+}
+var arr = {
+ length: 2
+};
- Object.defineProperty(arr, "0", {
- get: function () {
- Object.defineProperty(Object.prototype, "1", {
- get: function () {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
- });
+Object.defineProperty(arr, "0", {
+ get: function() {
+ Object.defineProperty(Object.prototype, "1", {
+ get: function() {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+});
assert.sameValue(Array.prototype.every.call(arr, callbackfn), false, 'Array.prototype.every.call(arr, callbackfn)');