Index: src/array.js |
diff --git a/src/array.js b/src/array.js |
index 372b7ece6382118a7a578e9a2d0f40ac43ae222a..9b71283945992d15e4eb1e5a504bbb24527d3561 100644 |
--- a/src/array.js |
+++ b/src/array.js |
@@ -1153,7 +1153,7 @@ function ArrayFilter(f, receiver) { |
} |
if (IS_NULL_OR_UNDEFINED(receiver)) { |
receiver = %GetDefaultReceiver(f) || receiver; |
- } else if (!IS_SPEC_OBJECT(receiver) && %IsClassicModeFunction(f)) { |
+ } else if (!IS_SPEC_OBJECT(receiver) && %IsSloppyModeFunction(f)) { |
receiver = ToObject(receiver); |
} |
@@ -1201,7 +1201,7 @@ function ArrayForEach(f, receiver) { |
} |
if (IS_NULL_OR_UNDEFINED(receiver)) { |
receiver = %GetDefaultReceiver(f) || receiver; |
- } else if (!IS_SPEC_OBJECT(receiver) && %IsClassicModeFunction(f)) { |
+ } else if (!IS_SPEC_OBJECT(receiver) && %IsSloppyModeFunction(f)) { |
receiver = ToObject(receiver); |
} |
@@ -1242,7 +1242,7 @@ function ArraySome(f, receiver) { |
} |
if (IS_NULL_OR_UNDEFINED(receiver)) { |
receiver = %GetDefaultReceiver(f) || receiver; |
- } else if (!IS_SPEC_OBJECT(receiver) && %IsClassicModeFunction(f)) { |
+ } else if (!IS_SPEC_OBJECT(receiver) && %IsSloppyModeFunction(f)) { |
receiver = ToObject(receiver); |
} |
@@ -1282,7 +1282,7 @@ function ArrayEvery(f, receiver) { |
} |
if (IS_NULL_OR_UNDEFINED(receiver)) { |
receiver = %GetDefaultReceiver(f) || receiver; |
- } else if (!IS_SPEC_OBJECT(receiver) && %IsClassicModeFunction(f)) { |
+ } else if (!IS_SPEC_OBJECT(receiver) && %IsSloppyModeFunction(f)) { |
receiver = ToObject(receiver); |
} |
@@ -1321,7 +1321,7 @@ function ArrayMap(f, receiver) { |
} |
if (IS_NULL_OR_UNDEFINED(receiver)) { |
receiver = %GetDefaultReceiver(f) || receiver; |
- } else if (!IS_SPEC_OBJECT(receiver) && %IsClassicModeFunction(f)) { |
+ } else if (!IS_SPEC_OBJECT(receiver) && %IsSloppyModeFunction(f)) { |
receiver = ToObject(receiver); |
} |