v8/test
bmeurer f6c6d713b4 [es6] Implement spec compliant ToPrimitive in the runtime.
This is the first step towards a spec compliant ToPrimitive
implementation (and therefore spec compliant ToNumber, ToString,
ToName, and friends).  It adds support for the @@toPrimitive
symbol that was introduced with ES2015, and also adds the new
Symbol.prototype[@@toPrimitive] and Date.prototype[@@toPrimitive]
initial properties.

There are now runtime functions for %ToPrimitive, %ToNumber and
%ToString, which do the right thing and should be used as fallbacks
instead of the hairy runtime.js implementations.  I will do the
same for the other conversion operations mentioned by the spec in
follow up CLs.  Once everything is in place we can look into
optimizing things further, so that we don't always call into the
runtime.

Also fixed Date.prototype.toJSON to be spec compliant.

R=mstarzinger@chromium.org, yangguo@chromium.org
BUG=v8:4307
LOG=y

Review URL: https://codereview.chromium.org/1306303003

Cr-Commit-Position: refs/heads/master@{#30434}
2015-08-28 09:21:43 +00:00
..
benchmarks [test] Key variant flags by variant name everywhere. 2015-07-29 07:14:30 +00:00
cctest [es6] Implement spec compliant ToPrimitive in the runtime. 2015-08-28 09:21:43 +00:00
intl Ensure String.prototype.normalize.length is 0 2015-08-05 15:13:45 +00:00
js-perf-test [es6] Remove harmony-classes flag 2015-06-26 21:16:58 +00:00
memory Correctly name memory stat for context snapshot size. 2015-04-10 22:36:02 +00:00
message Parse arrow functions at proper precedence level 2015-08-26 09:36:45 +00:00
mjsunit [es6] Implement spec compliant ToPrimitive in the runtime. 2015-08-28 09:21:43 +00:00
mozilla Revert "In RegExp, lastIndex is read with ToLength, not ToInteger" 2015-07-27 10:58:53 +00:00
preparser [test] Key variant flags by variant name everywhere. 2015-07-29 07:14:30 +00:00
promises-aplus Remove unnecessary coupling between Promise tests and Object.observe 2015-07-21 17:17:07 +00:00
simdjs [simd.js] Update to spec version 0.8.2. 2015-08-25 12:35:19 +00:00
test262 Revert "In RegExp, lastIndex is read with ToLength, not ToInteger" 2015-07-27 10:58:53 +00:00
test262-es6 Test262 roll to the 2015-8-25 version 2015-08-26 01:13:59 +00:00
unittests [Interpreter] Add support for parameter variables. 2015-08-27 10:32:39 +00:00
webkit Correctify instanceof and make it optimizable. 2015-08-25 04:48:54 +00:00