| Index: src/compiler-dispatcher/compiler-dispatcher.cc
|
| diff --git a/src/compiler-dispatcher/compiler-dispatcher.cc b/src/compiler-dispatcher/compiler-dispatcher.cc
|
| index 38ebf8c15681ab0132117780221c827669fba03b..2e7923bd928905dfaf8be560e8ff8d7557a12490 100644
|
| --- a/src/compiler-dispatcher/compiler-dispatcher.cc
|
| +++ b/src/compiler-dispatcher/compiler-dispatcher.cc
|
| @@ -240,7 +240,7 @@ bool CompilerDispatcher::Enqueue(Handle<SharedFunctionInfo> function) {
|
|
|
| // We only handle functions (no eval / top-level code / wasm) that are
|
| // attached to a script.
|
| - if (!function->script()->IsScript() || !function->is_function() ||
|
| + if (!function->script()->IsScript() || function->is_toplevel() ||
|
| function->asm_function() || function->native()) {
|
| return false;
|
| }
|
|
|