mirror of
https://github.com/oven-sh/bun
synced 2026-02-17 14:22:01 +00:00
Always set the result if its an entry point
This commit is contained in:
@@ -914,7 +914,7 @@ pub const VirtualMachine = struct {
|
||||
}
|
||||
|
||||
pub fn setEvalResultIfEntryPoint(this: *VirtualMachine, specifier: JSValue, result: JSValue) callconv(.C) void {
|
||||
if (!this.entry_point_result.has() and this.specifierIsEvalEntryPoint(specifier)) {
|
||||
if (this.specifierIsEvalEntryPoint(specifier)) {
|
||||
this.entry_point_result.set(this.global, result);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user