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

Unified Diff: src/runtime.js

Issue 1130073005: Revert of Migrate error messages, part 10. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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/objects.cc ('k') | src/runtime/runtime-classes.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 ad682d9c38d89a5690ac472339db93bf0b5cffef..004f9bf61bcdd1a088f12696b7216c0ead17f1c6 100644
--- a/src/runtime.js
+++ b/src/runtime.js
@@ -235,7 +235,7 @@
if (IS_NUMBER(this) && IS_NUMBER(x)) return %NumberAdd(this, x);
if (IS_STRING(this) && IS_STRING(x)) return %_StringAdd(this, x);
- throw %MakeTypeError(kStrongImplicitCast);
+ throw %MakeTypeError('strong_implicit_cast');
}
@@ -259,7 +259,7 @@
if (IS_STRING(y)) {
return %_StringAdd(this, y);
}
- throw %MakeTypeError(kStrongImplicitCast);
+ throw %MakeTypeError('strong_implicit_cast');
}
@@ -284,7 +284,7 @@
if (IS_STRING(this)) {
return %_StringAdd(this, y);
}
- throw %MakeTypeError(kStrongImplicitCast);
+ throw %MakeTypeError('strong_implicit_cast');
}
@@ -301,7 +301,7 @@
if (IS_NUMBER(this) && IS_NUMBER(y)) {
return %NumberSub(this, y);
}
- throw %MakeTypeError(kStrongImplicitCast);
+ throw %MakeTypeError('strong_implicit_cast');
}
@@ -318,7 +318,7 @@
if (IS_NUMBER(this) && IS_NUMBER(y)) {
return %NumberMul(this, y);
}
- throw %MakeTypeError(kStrongImplicitCast);
+ throw %MakeTypeError('strong_implicit_cast');
}
@@ -335,7 +335,7 @@
if (IS_NUMBER(this) && IS_NUMBER(y)) {
return %NumberDiv(this, y);
}
- throw %MakeTypeError(kStrongImplicitCast);
+ throw %MakeTypeError('strong_implicit_cast');
}
@@ -352,7 +352,7 @@
if (IS_NUMBER(this) && IS_NUMBER(y)) {
return %NumberMod(this, y);
}
- throw %MakeTypeError(kStrongImplicitCast);
+ throw %MakeTypeError('strong_implicit_cast');
}
@@ -374,7 +374,7 @@
if (IS_NUMBER(this) && IS_NUMBER(y)) {
return %NumberOr(this, y);
}
- throw %MakeTypeError(kStrongImplicitCast);
+ throw %MakeTypeError('strong_implicit_cast');
}
@@ -405,7 +405,7 @@
if (IS_NUMBER(this) && IS_NUMBER(y)) {
return %NumberAnd(this, y);
}
- throw %MakeTypeError(kStrongImplicitCast);
+ throw %MakeTypeError('strong_implicit_cast');
}
@@ -422,7 +422,7 @@
if (IS_NUMBER(this) && IS_NUMBER(y)) {
return %NumberXor(this, y);
}
- throw %MakeTypeError(kStrongImplicitCast);
+ throw %MakeTypeError('strong_implicit_cast');
}
@@ -439,7 +439,7 @@
if (IS_NUMBER(this) && IS_NUMBER(y)) {
return %NumberShl(this, y);
}
- throw %MakeTypeError(kStrongImplicitCast);
+ throw %MakeTypeError('strong_implicit_cast');
}
@@ -470,7 +470,7 @@
if (IS_NUMBER(this) && IS_NUMBER(y)) {
return %NumberSar(this, y);
}
- throw %MakeTypeError(kStrongImplicitCast);
+ throw %MakeTypeError('strong_implicit_cast');
}
@@ -487,7 +487,7 @@
if (IS_NUMBER(this) && IS_NUMBER(y)) {
return %NumberShr(this, y);
}
- throw %MakeTypeError(kStrongImplicitCast);
+ throw %MakeTypeError('strong_implicit_cast');
}
« no previous file with comments | « src/objects.cc ('k') | src/runtime/runtime-classes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698