Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index e54b004ab1271f301eaedac417393e4a1f3bb6c9..8dbc936fd36a9d0e7b406a741aef52729639d26c 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1852,6 +1852,15 @@ void Bootstrapper::ExportFromRuntime(Isolate* isolate, |
native_context->set_reflect_construct(*construct); |
} |
+ { |
+ Handle<JSFunction> to_string = InstallFunction( |
+ container, "object_to_string", JS_OBJECT_TYPE, JSObject::kHeaderSize, |
+ MaybeHandle<JSObject>(), Builtins::kObjectProtoToString); |
+ to_string->shared()->DontAdaptArguments(); |
+ to_string->shared()->set_length(0); |
+ native_context->set_object_to_string(*to_string); |
+ } |
+ |
Handle<JSObject> iterator_prototype; |
{ |