Index: src/harmony-typedarray.js |
diff --git a/src/harmony-typedarray.js b/src/harmony-typedarray.js |
index d692a5f1bc5cdca4ba5a6d265d72fc0a5165902a..a3bbf1a9b1f16e9ac75f5b214cc5ccec0b9c01d5 100644 |
--- a/src/harmony-typedarray.js |
+++ b/src/harmony-typedarray.js |
@@ -31,9 +31,7 @@ function NAMEForEach(f /* thisArg */) { // length == 1 |
if (!%IsTypedArray(this)) { |
throw MakeTypeError('not_typed_array', []); |
} |
- if (!IS_SPEC_FUNCTION(f)) { |
- throw MakeTypeError('called_non_callable', [ f ]); |
- } |
+ if (!IS_SPEC_FUNCTION(f)) throw MakeTypeError(kCalledNonCallable, f); |
var length = %_TypedArrayGetLength(this); |
var receiver; |