Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: src/bootstrapper.cc

Issue 7890003: Fix parent of the WeakMap prototype. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/mjsunit/harmony/weakmaps.js » ('j') | test/mjsunit/harmony/weakmaps.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index f07e625ec01956ede51834e8616a1e4160e70c84..3ed334c1e208c73aba2bca03bcffa4ea981009b7 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1204,10 +1204,9 @@ void Genesis::InitializeExperimentalGlobal() {
// TODO(mstarzinger): Move this into Genesis::InitializeGlobal once we no
// longer need to live behind a flag, so WeakMap gets added to the snapshot.
if (FLAG_harmony_weakmaps) { // -- W e a k M a p
- Handle<JSObject> prototype =
- factory()->NewJSObject(isolate()->object_function(), TENURED);
InstallFunction(global, "WeakMap", JS_WEAK_MAP_TYPE, JSWeakMap::kSize,
- prototype, Builtins::kIllegal, true);
+ isolate_->initial_object_prototype(),
+ Builtins::kIllegal, true);
}
}
« no previous file with comments | « no previous file | test/mjsunit/harmony/weakmaps.js » ('j') | test/mjsunit/harmony/weakmaps.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698