Index: src/harmony-typedarray.js |
diff --git a/src/harmony-typedarray.js b/src/harmony-typedarray.js |
index 7fc01cb801a9e6470899c042a9f09ce9a6c3992d..168481bb6b81ae27da92c4cd107cc1f2ced5bda4 100644 |
--- a/src/harmony-typedarray.js |
+++ b/src/harmony-typedarray.js |
@@ -28,9 +28,7 @@ macro TYPED_ARRAY_HARMONY_ADDITIONS(ARRAY_ID, NAME, ELEMENT_SIZE) |
// ES6 draft 08-24-14, section 22.2.3.12 |
function NAMEForEach(f /* thisArg */) { // length == 1 |
- if (!%IsTypedArray(this)) { |
- throw MakeTypeError('not_typed_array', []); |
- } |
+ if (!%IsTypedArray(this)) throw MakeTypeError(kNotTypedArray); |
if (!IS_SPEC_FUNCTION(f)) throw MakeTypeError(kCalledNonCallable, f); |
var length = %_TypedArrayGetLength(this); |