mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 21:32:05 +00:00
Fix tests
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user