DescriptionUse v8::Object::CreateDataProperty() for object construction
When creating objects (and arrays) internally, we should typically use
CreateDataProperty() rather than Set(), since the latter may invoke
setters defined by scripts. This could potentially be used by exploits to
do evil things, but more likely is just a potential source of breakage
and/or confusion.
Also, it is typically non-conforming in the cases where exact behavior is
defined in a specification.
BUG=
Committed: https://crrev.com/c64e8e4ab82fa3a477ce6e238d9966023d62a6b3
Cr-Commit-Position: refs/heads/master@{#390924}
Patch Set 1 #Messages
Total messages: 8 (3 generated)
|