Fix tests

This commit is contained in:
Jarred Sumner
2024-01-26 18:39:42 -08:00
parent 33bcf2b7c1
commit 64e07404a1
8 changed files with 127 additions and 132 deletions

View File

@@ -504,7 +504,7 @@ pub const VirtualMachine = struct {
hide_bun_stackframes: bool = true,
is_printing_plugin: bool = false,
is_shutting_down: bool = false,
plugin_runner: ?PluginRunner = null,
is_main_thread: bool = false,
last_reported_error_for_dedupe: JSValue = .zero,
@@ -625,6 +625,10 @@ pub const VirtualMachine = struct {
return this.debugger != null;
}
pub inline fn isShuttingDown(this: *const VirtualMachine) bool {
return this.is_shutting_down;
}
pub fn setOnException(this: *VirtualMachine, callback: *const OnException) void {
this.on_exception = callback;
}