Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index ed6ce930677df13c4bf57316de9cfa9f5a3f464e..49826069a5e0bce2800b801a282190f305a2433d 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -2806,7 +2806,8 @@ static Handle<JSFunction> InstallBuiltin(Isolate* isolate, |
Builtins::Name builtin_name) { |
Handle<String> key = isolate->factory()->InternalizeUtf8String(name); |
Handle<Code> code(isolate->builtins()->builtin(builtin_name)); |
- Handle<JSFunction> optimized = isolate->factory()->NewFunction(key, code); |
+ Handle<JSFunction> optimized = |
+ isolate->factory()->NewFunctionWithoutPrototype(key, code); |
optimized->shared()->DontAdaptArguments(); |
JSReceiver::SetProperty(holder, key, optimized, NONE, STRICT).Assert(); |
return optimized; |