Commit 30ae0417 authored by bmeurer's avatar bmeurer Committed by Commit bot

[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}
parent 3c164506
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment