We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42465e5 commit 8a9064bCopy full SHA for 8a9064b
src/runtime/js.zig
@@ -309,10 +309,8 @@ pub fn Env(comptime S: type, comptime types: anytype) type {
309
}
310
311
const context = v8.Context.init(isolate, global_template, null);
312
- if (kind == .main) {
313
- context.enter();
314
- errdefer context.exit();
315
- }
+ if (kind == .main) context.enter();
+ errdefer if (kind == .main) context.exit();
316
317
// This shouldn't be necessary, but it is:
318
// https://groups.google.com/g/v8-users/c/qAQQBmbi--8
0 commit comments