Skip to content

Commit

Permalink
v8: on stop, Env.js_ctx must be set to null
Browse files Browse the repository at this point in the history
  • Loading branch information
krichprollsch committed Dec 19, 2024
1 parent a244e75 commit 434af1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engines/v8/v8.zig
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ pub const Env = struct {

// JS context
self.js_ctx.?.exit();
self.js_ctx = undefined;
self.js_ctx = null;

// Native context
self.nat_ctx.stop();
Expand Down

0 comments on commit 434af1a

Please sign in to comment.