| 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);
|
| }
|
|
|