Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index fd53673a55cfacd0616ae9905e8d755ccdfaaa01..a82d1d69661f14d2e94757f724e17921075e1676 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -720,6 +720,8 @@ void Genesis::InitializeGlobal(Handle<GlobalObject> inner_global, |
InstallFunction(global, "String", JS_VALUE_TYPE, JSValue::kSize, |
Top::initial_object_prototype(), Builtins::Illegal, |
true); |
+ string_fun->shared()->set_construct_stub( |
+ Builtins::builtin(Builtins::StringConstructCode)); |
global_context()->set_string_function(*string_fun); |
// Add 'length' property to strings. |
Handle<DescriptorArray> string_descriptors = |