File tree Expand file tree Collapse file tree 1 file changed +18
-13
lines changed Expand file tree Collapse file tree 1 file changed +18
-13
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ using v8::Number;
115
115
using v8::Object;
116
116
using v8::ObjectTemplate;
117
117
using v8::PropertyCallbackInfo;
118
+ using v8::SealHandleScope;
118
119
using v8::String;
119
120
using v8::TryCatch;
120
121
using v8::Uint32;
@@ -3755,19 +3756,23 @@ int Start(int argc, char** argv) {
3755
3756
if (use_debug_agent)
3756
3757
EnableDebug (env);
3757
3758
3758
- bool more;
3759
- do {
3760
- more = uv_run (env->event_loop (), UV_RUN_ONCE);
3761
- if (more == false ) {
3762
- EmitBeforeExit (env);
3763
-
3764
- // Emit `beforeExit` if the loop became alive either after emitting
3765
- // event, or after running some callbacks.
3766
- more = uv_loop_alive (env->event_loop ());
3767
- if (uv_run (env->event_loop (), UV_RUN_NOWAIT) != 0 )
3768
- more = true ;
3769
- }
3770
- } while (more == true );
3759
+ {
3760
+ SealHandleScope seal (node_isolate);
3761
+ bool more;
3762
+ do {
3763
+ more = uv_run (env->event_loop (), UV_RUN_ONCE);
3764
+ if (more == false ) {
3765
+ EmitBeforeExit (env);
3766
+
3767
+ // Emit `beforeExit` if the loop became alive either after emitting
3768
+ // event, or after running some callbacks.
3769
+ more = uv_loop_alive (env->event_loop ());
3770
+ if (uv_run (env->event_loop (), UV_RUN_NOWAIT) != 0 )
3771
+ more = true ;
3772
+ }
3773
+ } while (more == true );
3774
+ }
3775
+
3771
3776
code = EmitExit (env);
3772
3777
RunAtExit (env);
3773
3778
You can’t perform that action at this time.
0 commit comments