Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2020-08-11 14:12:10 +0300
committerJames M Snell <jasnell@gmail.com>2020-08-12 00:58:50 +0300
commitfd038a1f1556e4d525ffb9ba07b2951e14e81cda (patch)
treec7790a5caf3775c838839e467769d5bb30a667a1 /src/env.cc
parentf86e3ea9dfc90b96d2e198a33dea07a491a608d7 (diff)
worker: fix --abort-on-uncaught-exception handling
The `set_abort_on_uncaught_exception(false)` line was supposed to prevent aborting when running Workers in `--abort-on-uncaught-exception` mode, but it was incorrectly set and not checked properly in the should-abort callback. PR-URL: https://github.com/nodejs/node/pull/34724 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Mary Marchini <oss@mmarchini.me>
Diffstat (limited to 'src/env.cc')
-rw-r--r--src/env.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/env.cc b/src/env.cc
index eb0fb299250..58681cdcccc 100644
--- a/src/env.cc
+++ b/src/env.cc
@@ -359,7 +359,7 @@ Environment::Environment(IsolateData* isolate_data,
inspector_host_port_.reset(
new ExclusiveAccess<HostPort>(options_->debug_options().host_port));
- if (flags & EnvironmentFlags::kOwnsProcessState) {
+ if (!(flags_ & EnvironmentFlags::kOwnsProcessState)) {
set_abort_on_uncaught_exception(false);
}