mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 21:01:52 +00:00
Fix WebAssembly.instantiate
This commit is contained in:
@@ -422,7 +422,13 @@ pub const EventLoop = struct {
|
||||
if (this.tickWithCount() == 0) break;
|
||||
}
|
||||
|
||||
this.global.vm().releaseWeakRefs();
|
||||
// This is JSC's event loop
|
||||
// We don't actually use this.
|
||||
// However, there are three uses of it in JavaScriptCore outside our control:
|
||||
// 1. FinalizationRegistry callbacks
|
||||
// 2. WebAssembly.instantiate
|
||||
// 3. WebAssembly.instantiateStreaming
|
||||
this.global.vm().doWork();
|
||||
|
||||
if (!ctx.disable_run_us_loop and ctx.us_loop_reference_count > 0 and !ctx.is_us_loop_entered) {
|
||||
ctx.is_us_loop_entered = true;
|
||||
|
||||
Reference in New Issue
Block a user