[es6] Move builtin constructors for primitives to strict mode.
authorbmeurer <bmeurer@chromium.org>
Tue, 15 Sep 2015 14:32:25 +0000 (07:32 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 15 Sep 2015 14:32:39 +0000 (14:32 +0000)
commite2f1c26982f57411571c4ce41d02f7d56501b208
treeca6f8899da54073d82029845f3a12b4348613ffa
parent63190721cda4966e01d71e92a730ce48ea789fbc
[es6] Move builtin constructors for primitives to strict mode.

The ES6 specification says that "Built-in functions that are ECMAScript
function objects must be strict mode functions", which in particular
means that you can never test for them using the "caller" field of a
sloppy mode function.

CQ_INCLUDE_TRYBOTS=tryserver.v8:v8_linux_layout_dbg,v8_linux_nosnap_dbg
R=mstarzinger@chromium.org
BUG=v8:105
LOG=n

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

Cr-Commit-Position: refs/heads/master@{#30750}
src/string.js
src/v8natives.js
test/mjsunit/regress/regress-105.js