Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 3c00a5e09867d442b67526e32da5b6bfea3360ed..0ea29176be345506f82267babf7a996a7b44f249 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -2482,7 +2482,7 @@ void Bootstrapper::ExportFromRuntime(Isolate* isolate, |
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_internal_formal_parameter_count(0); |
to_string->shared()->set_length(0); |
native_context->set_object_to_string(*to_string); |
} |