| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index 795b0199bd9aa291e7e057979656b867983bec03..6734a2ed42e58eeccc7e5e591730cac282fca6b4 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -1429,7 +1429,9 @@ bool Compiler::EnsureDeoptimizationSupport(CompilationInfo* info) {
|
| // TODO(4280): For now we play it safe and remove the bytecode array when we
|
| // switch to baseline code. We might consider keeping around the bytecode so
|
| // that it can be used as the "source of truth" eventually.
|
| - shared->ClearBytecodeArray();
|
| + if (shared->HasBytecodeArray()) {
|
| + shared->ClearBytecodeArray();
|
| + }
|
|
|
| // The scope info might not have been set if a lazily compiled
|
| // function is inlined before being called for the first time.
|
|
|