Skip to content

Commit

Permalink
Update JSGlobalObjectFunctions.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Sep 15, 2024
1 parent 8a5ce39 commit e9e63e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ JSC_DEFINE_HOST_FUNCTION(globalFuncImportModule, (JSGlobalObject* globalObject,

scope.release();
if (internalPromise->status(vm) == JSPromise::Status::Fulfilled) {
return JSPromise::resolvedPromise(globalObject, internalPromise->result(vm));
return JSValue::encode(JSPromise::resolvedPromise(globalObject, internalPromise->result(vm)));
}

auto* promise = JSPromise::create(vm, globalObject->promiseStructure());
Expand Down

0 comments on commit e9e63e7

Please sign in to comment.