fake segfault test

This commit is contained in:
Jarred Sumner
2022-01-23 20:13:35 -08:00
parent 43b9f9462f
commit 744f52fb27
2 changed files with 3 additions and 3 deletions

View File

@@ -0,0 +1 @@
Bun.__debug__doSegfault();

View File

@@ -775,9 +775,8 @@ pub const Bun = struct {
_: js.ExceptionRef,
) js.JSValueRef {
_ = ctx;
var seggy: *VirtualMachine = undefined;
seggy.printErrorInstance(undefined, undefined, false) catch unreachable;
return JSValue.jsUndefined().asRef();
const Reporter = @import("../../report.zig");
Reporter.globalError(error.SegfaultTest);
}
/// EnvironmentVariables is runtime defined.