mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
Update bindings.cpp
This commit is contained in:
@@ -1340,6 +1340,7 @@ JSC__JSModuleLoader__loadAndEvaluateModule(JSC__JSGlobalObject* globalObject,
|
||||
|
||||
auto* promise = JSC::loadAndEvaluateModule(globalObject, name, JSC::jsUndefined(), JSC::jsUndefined());
|
||||
if (!promise) {
|
||||
// usually this is a GC issue
|
||||
return jsCast<JSC::JSInternalPromise*>(JSC::JSInternalPromise::rejectedPromise(globalObject, JSC::jsUndefined()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user