From: bmeurer Date: Mon, 31 Aug 2015 12:57:38 +0000 (-0700) Subject: [runtime] Use utils.InstallFunctions for Symbol.prototype[@@toPrimitive]. X-Git-Tag: upstream/4.7.83~566 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=30ae041702b0a8027d6790aad8bcecb02e447745;p=platform%2Fupstream%2Fv8.git [runtime] Use utils.InstallFunctions for Symbol.prototype[@@toPrimitive]. R=mstarzinger@chromium.org Review URL: https://codereview.chromium.org/1310163004 Cr-Commit-Position: refs/heads/master@{#30474} --- diff --git a/src/symbol.js b/src/symbol.js index 84386a96b..2f68eff24 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