diff options
| author | 2021-10-26 19:07:37 -0700 | |
|---|---|---|
| committer | 2021-10-26 19:07:37 -0700 | |
| commit | 8d095a235fed9f0d83d708724bb821310b13502d (patch) | |
| tree | 4c6a42a5dbac17a873a735808c735eba00f7a86f /src | |
| parent | ff1417421bf47051cbeeb1d82967347619748fd9 (diff) | |
| download | bun-8d095a235fed9f0d83d708724bb821310b13502d.tar.gz bun-8d095a235fed9f0d83d708724bb821310b13502d.tar.zst bun-8d095a235fed9f0d83d708724bb821310b13502d.zip | |
Add test that checks JIT is enabled for JavaScriptCore and crashes if it isn't
Diffstat (limited to 'src')
| -rw-r--r-- | src/http.zig | 3 |
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) { |
