Index: src/runtime/runtime-function.cc |
diff --git a/src/runtime/runtime-function.cc b/src/runtime/runtime-function.cc |
index 6283f1ee800c8cd2cbda1e6907ca92e2facb96b2..5e585d2cb799e724291b5ff58d9b810a96b6c666 100644 |
--- a/src/runtime/runtime-function.cc |
+++ b/src/runtime/runtime-function.cc |
@@ -396,6 +396,7 @@ RUNTIME_FUNCTION(Runtime_FunctionBindArguments) { |
// TODO(lrn): Create bound function in C++ code from premade shared info. |
bound_function->shared()->set_bound(true); |
+ bound_function->shared()->set_optimized_code_map(Smi::FromInt(0)); |
bound_function->shared()->set_inferred_name(isolate->heap()->empty_string()); |
// Get all arguments of calling function (Function.prototype.bind). |
int argc = 0; |