Ensure that v8 arrays are always converted to object vars when allowed.
commitb918671e294f8ce830b5cb35ec09ecac95d3565a
authorraymes <raymes@chromium.org>
Mon, 15 Sep 2014 04:39:10 +0000 (14 21:39 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 15 Sep 2014 04:42:16 +0000 (15 04:42 +0000)
treec6fac841554971ab05c65c6c7795a23163c9bd21
parent5a6c114d435ab0e80a0becea72149629e145312e
Ensure that v8 arrays are always converted to object vars when allowed.

To maintain synchronous scripting backward compatibility, v8 arrays should
always be converted to object vars when allowed. I have added a comment
explaining the conversion of objects in more detail.

This CL also adds a check to ensure that when we convert an object var to
a v8 value that it is never nested inside of an array or dictionary. Before
we switched from NPObject to gin, this was never possible so there is no
need to add this functionality now and we should restrict this case from
ever happening.

BUG=411445

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

Cr-Commit-Position: refs/heads/master@{#294785}
content/renderer/pepper/v8_var_converter.cc