Index: src/runtime/runtime-classes.cc |
diff --git a/src/runtime/runtime-classes.cc b/src/runtime/runtime-classes.cc |
index 76c5c0068da4764a4bae6e81286184187a7ca2bc..831209005ef92c8c0e1345a1f309e9273e2ce675 100644 |
--- a/src/runtime/runtime-classes.cc |
+++ b/src/runtime/runtime-classes.cc |
@@ -137,6 +137,9 @@ static MaybeHandle<Object> DefineClass(Isolate* isolate, Handle<Object> name, |
Handle<Map> map = |
isolate->factory()->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize); |
+ if (constructor->map()->is_strong()) { |
+ map->set_is_strong(); |
+ } |
Map::SetPrototype(map, prototype_parent); |
map->SetConstructor(*constructor); |
Handle<JSObject> prototype = isolate->factory()->NewJSObjectFromMap(map); |