Fix Map/Set creation via the API with nosnap build
authoradamk <adamk@chromium.org>
Mon, 1 Jun 2015 23:16:27 +0000 (16:16 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 1 Jun 2015 23:16:42 +0000 (23:16 +0000)
commitdd4cd1fe90c7d6a445706950663cf38d79af9403
tree2088ff4bd254f204f8da86812d8b31d7c2cf382d
parent4f5337a2b64dc2486bde7b6b2c52ad6b1fedeaa0
Fix Map/Set creation via the API with nosnap build

The Map and Set maps get overwritten when collection.js executes, so in
a nosnap build we have to wait until it runs before we grab the maps.
To facilitate that, store the functions in the native context as well.

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

Cr-Commit-Position: refs/heads/master@{#28743}
src/bootstrapper.cc
src/contexts.h
test/cctest/test-api.cc