Lines Matching full:symbol
11 var $Symbol = global.Symbol;
17 throw MakeTypeError('not_constructor', ["Symbol"]);
19 // NOTE: Passing in a Symbol value will throw on ToString().
27 'incompatible_method_receiver', ["Symbol.prototype.toString", this]);
30 return "Symbol(" + (IS_UNDEFINED(description) ? "" : description) + ")";
37 'incompatible_method_receiver', ["Symbol.prototype.valueOf", this]);
56 var symbol = %CreateSymbol(key);
57 registry.for[key] = symbol;
58 registry.keyFor[symbol] = key;
64 function SymbolKeyFor(symbol) { argument
65 if (!IS_SYMBOL(symbol)) throw MakeTypeError("not_a_symbol", [symbol]);
66 return %SymbolRegistry().keyFor[symbol];
77 // TODO(arv): Proxies use a shared trap for String and Symbol keys.
85 var symbolHasInstance = InternalSymbol("Symbol.hasInstance");
86 var symbolIsConcatSpreadable = InternalSymbol("Symbol.isConcatSpreadable");
87 var symbolIsRegExp = InternalSymbol("Symbol.isRegExp");
88 var symbolIterator = InternalSymbol("Symbol.iterator");
89 var symbolToStringTag = InternalSymbol("Symbol.toStringTag");
90 var symbolUnscopables = InternalSymbol("Symbol.unscopables");
98 %SetCode($Symbol, SymbolConstructor);
99 %FunctionSetPrototype($Symbol, new $Object());
101 InstallConstants($Symbol, $Array(
110 InstallFunctions($Symbol, DONT_ENUM, $Array(
115 %AddNamedProperty($Symbol.prototype, "constructor", $Symbol, DONT_ENUM);
116 InstallFunctions($Symbol.prototype, DONT_ENUM, $Array(