Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 34dfb2925ec47b9d99095d0ebf1e4dc3719b3edf..c73c9676e6398f18aceba570ea28da40ceb4251a 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1633,7 +1633,7 @@ Handle<JSDataView> Factory::NewJSDataView() { |
Handle<JSMap> Factory::NewJSMap() { |
Handle<Map> map(isolate()->native_context()->js_map_map()); |
Handle<JSMap> js_map = Handle<JSMap>::cast(NewJSObjectFromMap(map)); |
- Runtime::JSMapInitialize(isolate(), js_map); |
+ JSMap::Initialize(js_map, isolate()); |
return js_map; |
} |
@@ -1641,7 +1641,7 @@ Handle<JSMap> Factory::NewJSMap() { |
Handle<JSSet> Factory::NewJSSet() { |
Handle<Map> map(isolate()->native_context()->js_set_map()); |
Handle<JSSet> js_set = Handle<JSSet>::cast(NewJSObjectFromMap(map)); |
- Runtime::JSSetInitialize(isolate(), js_set); |
+ JSSet::Initialize(js_set, isolate()); |
return js_set; |
} |