diff --git a/ecmascript/jspandafile/panda_file_translator.cpp b/ecmascript/jspandafile/panda_file_translator.cpp index 2ccae283cd..455cb5172b 100644 --- a/ecmascript/jspandafile/panda_file_translator.cpp +++ b/ecmascript/jspandafile/panda_file_translator.cpp @@ -263,7 +263,8 @@ std::pair, JSHandle> PandaFileTranslator::P type == ConstPoolType::CLASS_FUNCTION || type == ConstPoolType::METHOD || type == ConstPoolType::ASYNC_GENERATOR_FUNCTION); MethodLiteral *methodLiteral = jsPandaFile->FindMethodLiteral(it.first); - CHECK_INPUT_NULLPTR(methodLiteral, "ParseConstPool:methodLiteral is nullptr"); + CHECK_INPUT_NULLPTR(methodLiteral, + "ParseConstPool:methodLiteral is nullptr, offset: " + std::to_string(it.first)); methodLiteral->SetFunctionKind(JSPandaFile::GetFunctionKind(type)); JSHandle method = factory->NewSMethod(methodLiteral); @@ -333,7 +334,8 @@ void PandaFileTranslator::ParseFuncAndLiteralConstPool(EcmaVM *vm, const JSPanda type == ConstPoolType::CLASS_FUNCTION || type == ConstPoolType::METHOD || type == ConstPoolType::ASYNC_GENERATOR_FUNCTION); MethodLiteral *methodLiteral = jsPandaFile->FindMethodLiteral(it.first); - CHECK_INPUT_NULLPTR(methodLiteral, "ParseFuncAndLiteralConstPool:methodLiteral is nullptr"); + CHECK_INPUT_NULLPTR(methodLiteral, "ParseFuncAndLiteralConstPool:methodLiteral is nullptr, offset: " + + std::to_string(it.first)); methodLiteral->SetFunctionKind(JSPandaFile::GetFunctionKind(type)); JSHandle method = factory->NewSMethod(methodLiteral);