| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index 70f0d3628f01b1f109f546e85253d04bcb1c8f10..4ef0715d69a0c6bb6bd9787f00599a37d2df7959 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -2145,7 +2145,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetCode) {
|
| // target function to undefined. SetCode is only used for built-in
|
| // constructors like String, Array, and Object, and some web code
|
| // doesn't like seeing source code for constructors.
|
| - target_shared->set_code(source_shared->code());
|
| + target_shared->ReplaceCode(source_shared->code());
|
| target_shared->set_scope_info(source_shared->scope_info());
|
| target_shared->set_length(source_shared->length());
|
| target_shared->set_formal_parameter_count(
|
|
|