Index: src/symbol.js |
diff --git a/src/symbol.js b/src/symbol.js |
index 84386a96bde60d77a5fc1c7f2f64db2c69db9bba..2f68eff24197a6354d70905baf7422f8635dc598 100644 |
--- a/src/symbol.js |
+++ b/src/symbol.js |
@@ -119,13 +119,13 @@ utils.InstallFunctions(GlobalSymbol, DONT_ENUM, [ |
%AddNamedProperty( |
GlobalSymbol.prototype, "constructor", GlobalSymbol, DONT_ENUM); |
-utils.SetFunctionName(SymbolToPrimitive, toPrimitiveSymbol); |
-%AddNamedProperty( |
- GlobalSymbol.prototype, toPrimitiveSymbol, SymbolToPrimitive, |
- DONT_ENUM | READ_ONLY); |
%AddNamedProperty( |
GlobalSymbol.prototype, toStringTagSymbol, "Symbol", DONT_ENUM | READ_ONLY); |
+utils.InstallFunctions(GlobalSymbol.prototype, DONT_ENUM | READ_ONLY, [ |
+ toPrimitiveSymbol, SymbolToPrimitive |
+]); |
+ |
utils.InstallFunctions(GlobalSymbol.prototype, DONT_ENUM, [ |
"toString", SymbolToString, |
"valueOf", SymbolValueOf |