| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index d847d24bd2ee3273237fa6568612b6f0a891cdc1..f7be1c5ba5c1e02813d246d7342a6ef71a7fb4cb 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -2258,11 +2258,10 @@ MaybeLocal<Script> ScriptCompiler::Compile(Local<Context> context,
|
| source->info->set_script(script);
|
|
|
| {
|
| - // Create a canonical handle scope if compiling ignition bytecode. This is
|
| + // Create a canonical handle scope for compiling Ignition bytecode. This is
|
| // required by the constant array builder to de-duplicate objects without
|
| // dereferencing handles.
|
| - std::unique_ptr<i::CanonicalHandleScope> canonical;
|
| - if (i::FLAG_ignition) canonical.reset(new i::CanonicalHandleScope(isolate));
|
| + i::CanonicalHandleScope canonical(isolate);
|
|
|
| // Do the parsing tasks which need to be done on the main thread. This will
|
| // also handle parse errors.
|
|
|