Module.findSourceMap shouldn't throw (#16229)

This commit is contained in:
Jarred Sumner
2025-01-07 18:01:28 -08:00
committed by GitHub
parent 9223d865ed
commit 7d58787dda
2 changed files with 5 additions and 7 deletions

View File

@@ -284,13 +284,7 @@ JSC_DEFINE_HOST_FUNCTION(jsFunctionFindSourceMap,
(JSGlobalObject * globalObject,
CallFrame* callFrame))
{
auto& vm = globalObject->vm();
auto scope = DECLARE_THROW_SCOPE(vm);
throwException(
globalObject, scope,
createError(globalObject,
"module.SourceMap is not yet implemented in Bun"_s));
return {};
return JSValue::encode(jsUndefined());
}
JSC_DEFINE_HOST_FUNCTION(jsFunctionSyncBuiltinExports,