Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(768)

Unified Diff: src/runtime.js

Issue 1095573002: Revert of Migrate error messages, part 2. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/regexp.js ('k') | src/runtime/runtime-compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime.js
diff --git a/src/runtime.js b/src/runtime.js
index b20639cde61d2d7a204abaceab06dea87a8b448b..e4cb4ff312a86f8e09e757ec4114d2a9f7b48d49 100644
--- a/src/runtime.js
+++ b/src/runtime.js
@@ -379,7 +379,7 @@
if (!IS_FUNCTION(delegate)) {
var callsite = %RenderCallSite();
if (callsite == "") callsite = typeof this;
- throw %MakeTypeError(kCalledNonCallable, callsite);
+ throw %MakeTypeError('called_non_callable', [callsite]);
}
return %Apply(delegate, this, arguments, 0, %_ArgumentsLength());
}
@@ -390,7 +390,7 @@
if (!IS_FUNCTION(delegate)) {
var callsite = %RenderCallSite();
if (callsite == "") callsite = typeof this;
- throw %MakeTypeError(kCalledNonCallable, callsite);
+ throw %MakeTypeError('called_non_callable', [callsite]);
}
return %Apply(delegate, this, arguments, 0, %_ArgumentsLength());
}
@@ -463,7 +463,7 @@
}
if (!IS_SPEC_FUNCTION(this)) {
- throw %MakeTypeError(kCalledNonCallable, %ToString(this));
+ throw %MakeTypeError('called_non_callable', [ %ToString(this) ]);
}
if (!IS_SPEC_OBJECT(args)) {
@@ -503,7 +503,7 @@
if (!ctorOk) {
if (!IS_SPEC_FUNCTION(this)) {
- throw %MakeTypeError(kCalledNonCallable, %ToString(this));
+ throw %MakeTypeError('called_non_callable', [ %ToString(this) ]);
} else {
throw %MakeTypeError('not_constructor', [ %ToString(this) ]);
}
@@ -511,7 +511,7 @@
if (!newTargetOk) {
if (!IS_SPEC_FUNCTION(newTarget)) {
- throw %MakeTypeError(kCalledNonCallable, %ToString(newTarget));
+ throw %MakeTypeError('called_non_callable', [ %ToString(newTarget) ]);
} else {
throw %MakeTypeError('not_constructor', [ %ToString(newTarget) ]);
}
« no previous file with comments | « src/regexp.js ('k') | src/runtime/runtime-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698