Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Unified Diff: src/symbol.js

Issue 546803003: Update ObjectToString to Harmony-draft algorithm (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Put ES6 behaviour behind flag, fixup tests, refactor kBuiltinToStringTags Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/symbol.js
diff --git a/src/symbol.js b/src/symbol.js
index e00979019010e93d47634b055725e8a68009179b..c3a7aa56aeb62bd120059511aa85a1da467b9f29 100644
--- a/src/symbol.js
+++ b/src/symbol.js
@@ -101,6 +101,7 @@ function SetUpSymbol() {
// "isConcatSpreadable", symbolIsConcatSpreadable,
// "isRegExp", symbolIsRegExp,
"iterator", symbolIterator,
+ // TODO: Currently defined in harmony-tostring.js --- Move here when shipping
Dmitry Lomov (no reviews) 2014/10/17 19:29:06 nit: 80 column lines
caitp (gmail) 2014/10/17 20:12:13 Acknowledged.
// "toStringTag", symbolToStringTag,
"unscopables", symbolUnscopables
));
@@ -110,6 +111,8 @@ function SetUpSymbol() {
));
%AddNamedProperty($Symbol.prototype, "constructor", $Symbol, DONT_ENUM);
+ %AddNamedProperty(
+ $Symbol.prototype, symbolToStringTag, "Symbol", DONT_ENUM | READ_ONLY);
Dmitry Lomov (no reviews) 2014/10/17 19:29:06 Hmm, when --harmony-tostring is turned off, where
caitp (gmail) 2014/10/17 20:12:13 It's defined in both harmony-tostring.js and symbo
Dmitry Lomov (no reviews) 2014/10/18 08:41:49 Oh I see. missed that.
InstallFunctions($Symbol.prototype, DONT_ENUM, $Array(
"toString", SymbolToString,
"valueOf", SymbolValueOf

Powered by Google App Engine
This is Rietveld 408576698