Index: src/harmony-array.js |
diff --git a/src/harmony-array.js b/src/harmony-array.js |
index cdd63be41611c1c17ad85eab60ede0fababa7868..dc7d71fcb4dca34110756793db4953325ca95b8e 100644 |
--- a/src/harmony-array.js |
+++ b/src/harmony-array.js |
@@ -18,7 +18,7 @@ function ArrayFind(predicate /* thisArg */) { // length == 1 |
var length = ToInteger(array.length); |
if (!IS_SPEC_FUNCTION(predicate)) { |
- throw MakeTypeError('called_non_callable', [predicate]); |
+ throw MakeTypeError(kCalledNonCallable, predicate); |
} |
var thisArg; |
@@ -55,7 +55,7 @@ function ArrayFindIndex(predicate /* thisArg */) { // length == 1 |
var length = ToInteger(array.length); |
if (!IS_SPEC_FUNCTION(predicate)) { |
- throw MakeTypeError('called_non_callable', [predicate]); |
+ throw MakeTypeError(kCalledNonCallable, predicate); |
} |
var thisArg; |
@@ -134,7 +134,7 @@ function ArrayFrom(arrayLike, mapfn, receiver) { |
if (mapping) { |
if (!IS_SPEC_FUNCTION(mapfn)) { |
- throw MakeTypeError('called_non_callable', [ mapfn ]); |
+ throw MakeTypeError(kCalledNonCallable, mapfn); |
} else if (IS_NULL_OR_UNDEFINED(receiver)) { |
receiver = %GetDefaultReceiver(mapfn) || receiver; |
} else if (!IS_SPEC_OBJECT(receiver) && %IsSloppyModeFunction(mapfn)) { |