| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 15a59bb commit 5a494ae
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -161,6 +161,9 @@ Environment::Environment(IsolateData* isolate_data, | |||
| 161 | 161 | ||
| 162 | 162 | isolate()->GetHeapProfiler()->AddBuildEmbedderGraphCallback( | |
| 163 | 163 | BuildEmbedderGraph, this); | |
| 164 | + if (options_->no_force_async_hooks_checks) { | ||
| 165 | + async_hooks_.no_force_checks(); | ||
| 166 | + } | ||
| 164 | 167 | } | |
| 165 | 168 | ||
| 166 | 169 | Environment::~Environment() { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2896,12 +2896,6 @@ inline int Start(Isolate* isolate, IsolateData* isolate_data, | |||
| 2896 | 2896 | return 12; // Signal internal error. | |
| 2897 | 2897 | } | |
| 2898 | 2898 | ||
| 2899 | - // TODO(addaleax): Maybe access this option directly instead of setting | ||
| 2900 | - // a boolean member of Environment. Ditto below for trace_sync_io. | ||
| 2901 | - if (env.options()->no_force_async_hooks_checks) { | ||
| 2902 | - env.async_hooks()->no_force_checks(); | ||
| 2903 | - } | ||
| 2904 | - | ||
| 2905 | 2899 | { | |
| 2906 | 2900 | Environment::AsyncCallbackScope callback_scope(&env); | |
| 2907 | 2901 | env.async_hooks()->push_async_ids(1, 0); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments