diff --git a/AUTHORS b/AUTHORS index c544b7fa63..b5f3b1f69b 100644 --- a/AUTHORS +++ b/AUTHORS @@ -76,6 +76,7 @@ Gwang Yoon Hwang Henrique Ferreiro Hirofumi Mako Honggyu Kim +Ingvar Stepanyan Ioseb Dzmanashvili Isiah Meadows Jaime Bernardo diff --git a/src/compiler.cc b/src/compiler.cc index f4dcffb181..1e457f0356 100644 --- a/src/compiler.cc +++ b/src/compiler.cc @@ -1957,6 +1957,12 @@ void Compiler::PostInstantiation(Handle function, function->set_code(code); } } + + if (shared->is_toplevel() || shared->is_wrapped()) { + // If it's a top-level script, report compilation to the debugger. + Handle