DescriptionCopy dictionary keys and values in enumeration in TransferNamedProperties
During bootstrapping when installing the global object we copy over the
properties from the snapshotted global object to the one created from a
provided template. Originally Genesis::TransferNamedProperties just iterated
over the entries, making the final order hash and thus platform dependent.
This CL fixes this by sorting the keys by enumeration index before copying them
to the destination object and thus making the key enumaration on the global
object platform independent.
Drive-by-fix: avoid crash when printing the global object during bootstrapping.
BUG=chromium:669029
Committed: https://crrev.com/7036eec6f7488e205c5583293e98e9f201d506b2
Cr-Commit-Position: refs/heads/master@{#41502}
Patch Set 1 #
Total comments: 1
Patch Set 2 : rip out sorting code #
Messages
Total messages: 20 (13 generated)
|