summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/some/15.4.4.17-7-b-13.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/some/15.4.4.17-7-b-13.js')
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-b-13.js32
1 files changed, 16 insertions, 16 deletions
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-13.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-13.js
index 4f1afb3af..c15b1fade 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-13.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-13.js
@@ -9,23 +9,23 @@ description: >
property causes prototype index property to be visited on an Array
---*/
- function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 1) {
- return true;
- } else {
- return false;
- }
- }
- var arr = [0, 111, 2];
+function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ return true;
+ } else {
+ return false;
+ }
+}
+var arr = [0, 111, 2];
- Object.defineProperty(arr, "0", {
- get: function () {
- delete arr[1];
- return 0;
- },
- configurable: true
- });
+Object.defineProperty(arr, "0", {
+ get: function() {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+});
- Array.prototype[1] = 1;
+Array.prototype[1] = 1;
assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true');