We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d521fee commit f987d1eCopy full SHA for f987d1e
Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
@@ -792,11 +792,8 @@ IGNORE_GCC_WARNINGS_END
792
#if USE(BUN_JSC_ADDITIONS)
793
if (m_isBuiltinFunction) {
794
const auto isDefaultPromiseForBun = [&]() -> bool {
795
- if (auto* provider = m_scopeNode->source().provider()) {
796
- const String& sourceURL = provider->sourceURL();
797
- if (!sourceURL.isNull() && !sourceURL.isEmpty())
798
- return sourceURL == "node:fs/promises"_s;
799
- }
+ if (auto* provider = m_scopeNode->source().provider())
+ return !provider->sourceURL().isEmpty();
800
return false;
801
};
802
isInternalPromise = !functionNode->ident().string().startsWith("defaultAsync"_s) && !isDefaultPromiseForBun();
0 commit comments