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

Unified Diff: src/symbol.js

Issue 1086313003: 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/string-iterator.js ('k') | src/typedarray.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/symbol.js
diff --git a/src/symbol.js b/src/symbol.js
index 4ea77979c237c85ef15cb663be18ac4cfa127746..0f5ecb7984d8ce9ebcfa0edbbb29cb560ba4234a 100644
--- a/src/symbol.js
+++ b/src/symbol.js
@@ -34,8 +34,8 @@ function SymbolConstructor(x) {
function SymbolToString() {
if (!(IS_SYMBOL(this) || IS_SYMBOL_WRAPPER(this))) {
- throw MakeTypeError(
- 'incompatible_method_receiver', ["Symbol.prototype.toString", this]);
+ throw MakeTypeError(kIncompatibleMethodReceiver,
+ "Symbol.prototype.toString", this);
}
var description = %SymbolDescription(%_ValueOf(this));
return "Symbol(" + (IS_UNDEFINED(description) ? "" : description) + ")";
@@ -44,8 +44,8 @@ function SymbolToString() {
function SymbolValueOf() {
if (!(IS_SYMBOL(this) || IS_SYMBOL_WRAPPER(this))) {
- throw MakeTypeError(
- 'incompatible_method_receiver', ["Symbol.prototype.valueOf", this]);
+ throw MakeTypeError(kIncompatibleMethodReceiver,
+ "Symbol.prototype.valueOf", this);
}
return %_ValueOf(this);
}
« no previous file with comments | « src/string-iterator.js ('k') | src/typedarray.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698