aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/http.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/http.zig b/src/http.zig
index d6de0a913..896c54812 100644
--- a/src/http.zig
+++ b/src/http.zig
@@ -1205,6 +1205,9 @@ pub const RequestContext = struct {
var module_map = ZigGlobalObject.getModuleRegistryMap(vm.global);
if (!VM.isJITEnabled()) {
Output.prettyErrorln("<red><r>warn:<r> JIT is disabled,,,this is a bug in Bun and/or a permissions problem. JS will run slower.", .{});
+ if (vm.bundler.env.map.get("BUN_CRASH_WITHOUT_JIT") != null) {
+ Global.crash();
+ }
}
while (true) {