Skip to content

Commit

Permalink
fix the assert
Browse files Browse the repository at this point in the history
  • Loading branch information
pfgithub committed Dec 14, 2024
1 parent 5b6aa34 commit 1ead004
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Source/JavaScriptCore/runtime/ModuleProgramExecutable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ ModuleProgramExecutable::ModuleProgramExecutable(JSGlobalObject* globalObject, c
: Base(globalObject->vm().moduleProgramExecutableStructure.get(), globalObject->vm(), source, StrictModeLexicallyScopedFeature, DerivedContextType::None, false, false, EvalContextType::None, NoIntrinsic)
{
SourceProviderSourceType sourceType = source.provider()->sourceType();
ASSERT(sourceType == SourceProviderSourceType::Module || sourceType == SourceProviderSourceType::BunTranspiledModule);
ASSERT(sourceType == SourceProviderSourceType::Module
#if USE(BUN_JSC_ADDITIONS)
|| sourceType == SourceProviderSourceType::BunTranspiledModule
#endif
);
VM& vm = globalObject->vm();
if (vm.typeProfiler() || vm.controlFlowProfiler())
vm.functionHasExecutedCache()->insertUnexecutedRange(sourceID(), typeProfilingStartOffset(), typeProfilingEndOffset());
Expand Down

0 comments on commit 1ead004

Please sign in to comment.