From 232f8d98652fb1f258cac4d16e2251ca9e5735d0 Mon Sep 17 00:00:00 2001 From: "mstarzinger@chromium.org" Date: Thu, 6 Jun 2013 11:37:40 +0000 Subject: [PATCH] Fix TypedArray error for parameterless constructor. R=dslomov@chromium.org Review URL: https://codereview.chromium.org/16542002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14968 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/typedarray.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/typedarray.js b/src/typedarray.js index 4fade00..04c487f 100644 --- a/src/typedarray.js +++ b/src/typedarray.js @@ -94,7 +94,7 @@ function CreateTypedArrayConstructor(name, elementSize, arrayId, constructor) { } else if (!IS_UNDEFINED(arg1)){ ConstructByArrayLike(this, arg1); } else { - throw MakeTypeError("parameterless_typed_array_constr", name); + throw MakeTypeError("parameterless_typed_array_constr", [name]); } } else { return new constructor(arg1, arg2, arg3); -- 2.7.4