!5032 revert PR 4991

Merge pull request !5032 from DaiHN/bugfix_revert
This commit is contained in:
openharmony_ci 2023-10-24 02:29:26 +00:00 committed by Gitee
commit 5eb60f158a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -36,7 +36,7 @@ JSPandaFile::JSPandaFile(const panda_file::File *pf, const CString &descriptor)
}
checksum_ = pf->GetHeader()->checksum;
isNewVersion_ = pf_->GetHeader()->version > OLD_VERSION;
if (!loadedFirstPandaFile && !isBundlePack_ && strstr(desc_.c_str(), MERGE_ABC_NAME) != NULL) {
if (!loadedFirstPandaFile && !isBundlePack_) {
// Tag the first merged abc to use constant string. The lifetime of this first panda file is the same
// as the vm. And make sure the first pandafile is the same at the compile time and runtime.
isFirstPandafile_ = true;