| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index ad531d7d3ef8ff05aa302fb735af56e58fe5b4bb..794cff1ba57aeda67e0f0f704e1809fcf62c3705 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -2267,18 +2267,10 @@ MaybeLocal<Script> ScriptCompiler::Compile(Local<Context> context,
|
|
|
| source->info->set_script(script);
|
|
|
| - {
|
| - // Create a canonical handle scope if 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));
|
| -
|
| - // Do the parsing tasks which need to be done on the main thread. This will
|
| - // also handle parse errors.
|
| - source->parser->Internalize(isolate, script,
|
| - source->info->literal() == nullptr);
|
| - }
|
| + // Do the parsing tasks which need to be done on the main thread. This will
|
| + // also handle parse errors.
|
| + source->parser->Internalize(isolate, script,
|
| + source->info->literal() == nullptr);
|
| source->parser->HandleSourceURLComments(isolate, script);
|
|
|
| i::Handle<i::SharedFunctionInfo> result;
|
|
|