DescriptionUpdate ObjectToString to Harmony-draft algorithm
Updates Object.prototype.toString() to use algorithm described in harmony drafts.
Currently, the behaviour is essentially the same as ES262's version, however this changes when internal structures
such as Promise make use of symbolToStringTag (as they are supposed to, see v8:3241), and changes further once
Symbol.toStringTag is exposed publicly.
BUG=v8:3241, v8:3502
LOG=N
R=dslomov@chromium.org
Committed: https://code.google.com/p/v8/source/detail?r=24783
Patch Set 1 #Patch Set 2 : Add @@toStringTag to some objects + tests #
Total comments: 8
Patch Set 3 : Put ES6 behaviour behind flag, fixup tests, refactor kBuiltinToStringTags #
Total comments: 9
Patch Set 4 : Make ObjectProtoToString() work like ES6 Object.prototype.toString-ish #
Total comments: 5
Patch Set 5 : Use intern'd strings instead of creating vectors #
Total comments: 9
Patch Set 6 : Add more test cases for test-api/ObjectProtoToString #Patch Set 7 : Add lots more tests, make it safer #
Total comments: 13
Patch Set 8 : Nits, few more tests #
Total comments: 3
Patch Set 9 : Test nits #Patch Set 10 : Teach NoSideEffectToString() that ObjectToString was extended #
Total comments: 4
Patch Set 11 : Rebase, rename ObjectToString #
Messages
Total messages: 41 (4 generated)
|