https://codereview.chromium.org/1157453002/diff/1/src/bootstrapper.cc
File src/bootstrapper.cc (right):
https://codereview.chromium.org/1157453002/diff/1/src/bootstrapper.cc#newcode1221
src/bootstrapper.cc:1221:
native_context()->set_js_map_map(js_map_fun->initial_map());
On 2015/06/01 13:32:27, jochen wrote:
this doesn't work :-/
the prototype of the Map() function is overwritten in collection.js
which runs
after this code.
if you built without a snapshot and create a Map via the C++ API, the
resulting
object's __proto__ will be Object.prototype
you should store the function in the native context, and read the
initial map in
ConfigureGlobalObjects
Good eye, fix up for review at
https://codereview.chromium.org/1161363002
https://codereview.chromium.org/1157453002/
--
--
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.