Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Unified Diff: src/compiler.cc

Issue 2640983006: Also suppress exception messages thrown by native scripts (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-681984.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index e5ebae9294d5eb1868f13788968278876674ae37..4a22d20b9dee5d5e4a7641cbb59597d99ca89220 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -1618,7 +1618,9 @@ Handle<SharedFunctionInfo> Compiler::GetSharedFunctionInfoForScript(
}
if (result.is_null()) {
- if (natives != EXTENSION_CODE) isolate->ReportPendingMessages();
+ if (natives != EXTENSION_CODE && natives != NATIVES_CODE) {
+ isolate->ReportPendingMessages();
+ }
} else {
isolate->debug()->OnAfterCompile(script);
}
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-681984.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698