File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -389,18 +389,18 @@ pub fn Env(comptime S: type, comptime types: anytype) type {
389389 // `gc_hints` option is enabled, we'll use the `lowMemoryNotification`
390390 // call on the isolate to encourage v8 to free the context.
391391 pub fn stopExecutor (self : * Self , executor : * Executor ) void {
392- executor .deinit ();
393- self .executor_pool .destroy (executor );
394- if (self .gc_hints ) {
395- self .isolate .lowMemoryNotification ();
396- }
397-
398392 if (comptime builtin .mode == .Debug ) {
399393 if (executor .kind == .main ) {
400394 std .debug .assert (self .has_executor == true );
401395 self .has_executor = false ;
402396 }
403397 }
398+
399+ executor .deinit ();
400+ self .executor_pool .destroy (executor );
401+ if (self .gc_hints ) {
402+ self .isolate .lowMemoryNotification ();
403+ }
404404 }
405405
406406 // Give it a Zig struct, get back a v8.FunctionTemplate.
You can’t perform that action at this time.
0 commit comments