Index: src/harmony-array.js |
diff --git a/src/harmony-array.js b/src/harmony-array.js |
index 2cedebaae13b4f5823e12dc279c2ecb1becd0993..d37d87538575d53651255ca8bdacdc77e0beb01c 100644 |
--- a/src/harmony-array.js |
+++ b/src/harmony-array.js |
@@ -51,7 +51,7 @@ function ArrayFind(predicate /* thisArg */) { // length == 1 |
if (IS_NULL_OR_UNDEFINED(thisArg)) { |
thisArg = %GetDefaultReceiver(predicate) || thisArg; |
- } else if (!IS_SPEC_OBJECT(thisArg) && %IsClassicModeFunction(predicate)) { |
+ } else if (!IS_SPEC_OBJECT(thisArg) && %IsSloppyModeFunction(predicate)) { |
thisArg = ToObject(thisArg); |
} |
@@ -86,7 +86,7 @@ function ArrayFindIndex(predicate /* thisArg */) { // length == 1 |
if (IS_NULL_OR_UNDEFINED(thisArg)) { |
thisArg = %GetDefaultReceiver(predicate) || thisArg; |
- } else if (!IS_SPEC_OBJECT(thisArg) && %IsClassicModeFunction(predicate)) { |
+ } else if (!IS_SPEC_OBJECT(thisArg) && %IsSloppyModeFunction(predicate)) { |
thisArg = ToObject(thisArg); |
} |