mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 20:09:04 +00:00
if cjs, dont set through esm eval
This commit is contained in:
@@ -93,7 +93,7 @@ static bool canPerformFastEnumeration(Structure* s)
|
||||
}
|
||||
|
||||
extern "C" bool Bun__VM__specifierIsEvalEntryPoint(void*, EncodedJSValue);
|
||||
extern "C" void Bun__VM__setEntryPointEvalResult(void*, EncodedJSValue);
|
||||
extern "C" void Bun__VM__setEntryPointEvalResultCJS(void*, EncodedJSValue);
|
||||
|
||||
static bool evaluateCommonJSModuleOnce(JSC::VM& vm, Zig::GlobalObject* globalObject, JSCommonJSModule* moduleObject, JSString* dirname, JSValue filename, WTF::NakedPtr<Exception>& exception)
|
||||
{
|
||||
@@ -139,7 +139,7 @@ static bool evaluateCommonJSModuleOnce(JSC::VM& vm, Zig::GlobalObject* globalObj
|
||||
return false;
|
||||
}
|
||||
|
||||
Bun__VM__setEntryPointEvalResult(globalObject->bunVM(), JSValue::encode(result));
|
||||
Bun__VM__setEntryPointEvalResultCJS(globalObject->bunVM(), JSValue::encode(result));
|
||||
|
||||
moduleObject->sourceCode.clear();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user