One does not simple create a SLOPPY_ARGUMENTS_ELEMENT_KIND :))
(this is tricky stuff, and we overlook this corner case all the time)
https://codereview.chromium.org/771483002/diff/110001/test/mjsunit/harmony/array-concat.js
File test/mjsunit/harmony/array-concat.js (right):
https://codereview.chromium.org/771483002/diff/110001/test/mjsunit/harmony/array-concat.js#newcode164
test/mjsunit/harmony/array-concat.js:164: var args = (function() {
return arguments; })(1,2,3);
Yes, this test does not produce SLOPPY_ARGUMENTS_ELEMENT_KIND.
You need a function to have both arguments and parameters to get it.
So just replace `function f()` with `function f(x, y, z)`
The logic that governs this is here:
https://code.google.com/p/chromium/codesearch#chromium/src/v8/src/runtime/runtime-scopes.cc&q=runtime-sc&sq=package:chromium&l=366
https://codereview.chromium.org/771483002/
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.