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