Add a comment

This commit is contained in:
Jarred Sumner
2023-05-30 00:26:30 -07:00
parent fdbf8a5184
commit 85565d95d5

View File

@@ -393,6 +393,10 @@ JSC::SourceCode createCommonJSModule(
result = moduleObject->getIfPropertyExists(globalObject, clientData->builtinNames().exportsPublicName());
if (UNLIKELY(throwScope.exception())) {
// Unlike getters on properties of the exports object
// When the exports object itself is a getter and it throws
// There's not a lot we can do
// so we surface that error
globalObject->requireMap()->remove(globalObject, requireMapKey);
throwScope.release();
return;