Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index b0402fa1de8a8782c4ef0736a22f5c1bde37e6bc..9fad2183ecafb643a6e8aa7e3305ad346ab5cc44 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -3561,6 +3561,9 @@ void Genesis::InitializeGlobal_enable_fast_array_builtins() { |
Object::GetProperty(&it3).ToHandleChecked(); |
Handle<JSFunction>::cast(for_each_function) |
->set_code(isolate->builtins()->builtin(Builtins::kArrayForEach)); |
+ Handle<JSFunction>::cast(for_each_function) |
+ ->shared() |
+ ->set_code(isolate->builtins()->builtin(Builtins::kArrayForEach)); |
} |
void Genesis::InitializeGlobal_harmony_sharedarraybuffer() { |