Fix bug in "Migrate error messages, part 7".
authoryangguo <yangguo@chromium.org>
Tue, 5 May 2015 10:25:55 +0000 (03:25 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 5 May 2015 10:25:59 +0000 (10:25 +0000)
TBR=mvstanton@chromium.org
NOTRY=true

Review URL: https://codereview.chromium.org/1124583006

Cr-Commit-Position: refs/heads/master@{#28220}

src/typedarray.js

index 3bd7766..8a16a25 100644 (file)
@@ -360,7 +360,7 @@ function DataViewConstructor(buffer, byteOffset, byteLength) { // length = 3
     }
     %_DataViewInitialize(this, buffer, offset, length);
   } else {
-    throw MakeTypeError('constructor_not_function', ["DataView"]);
+    throw MakeTypeError(kConstructorNotFunction, "DataView");
   }
 }