Index: src/runtime/runtime-classes.cc |
diff --git a/src/runtime/runtime-classes.cc b/src/runtime/runtime-classes.cc |
index 1be0341eae2557e7d00dc8e02aaea4de1e4015ec..ac02ce1b1cd07ee26f8b168ae4adfce6ca822410 100644 |
--- a/src/runtime/runtime-classes.cc |
+++ b/src/runtime/runtime-classes.cc |
@@ -108,7 +108,7 @@ RUNTIME_FUNCTION(Runtime_DefineClass) { |
Handle<Map> map = |
isolate->factory()->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize); |
map->SetPrototype(prototype_parent); |
- map->set_constructor(*constructor); |
+ map->SetConstructor(*constructor); |
Handle<JSObject> prototype = isolate->factory()->NewJSObjectFromMap(map); |
Handle<String> name_string = name->IsString() |