diff --git a/frameworks/native/runtime/js_runtime.cpp b/frameworks/native/runtime/js_runtime.cpp index ea17386a64..5307980930 100644 --- a/frameworks/native/runtime/js_runtime.cpp +++ b/frameworks/native/runtime/js_runtime.cpp @@ -980,9 +980,9 @@ void JsRuntime::InitSourceMap(const std::shared_ptr op { HITRACE_METER_NAME(HITRACE_TAG_APP, __PRETTY_FUNCTION__); CHECK_POINTER(jsEnv_); - jsEnv_->InitSourceMap(operatorObj); JsEnv::SourceMap::RegisterReadSourceMapCallback(JsRuntime::ReadSourceMapData); JsEnv::SourceMap::RegisterGetHapPathCallback(JsModuleReader::GetHapPathList); + jsEnv_->InitSourceMap(operatorObj); } void JsRuntime::InitSourceMap(const std::string hqfFilePath)