revert PR 4843

issue :https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8AAZF?from=project-issue
Signed-off-by: DaiHN <daihuina1@huawei.com>
Change-Id: Id4d5b8dd304c0edabf62a8bfc92941f1d661ce20

Change-Id: If6c739e6c3e927fa9c4594e15134765cceb650ff
This commit is contained in:
DaiHN 2023-10-24 00:01:12 +08:00
parent 056398f55e
commit d6b1332d42

View File

@ -36,7 +36,7 @@ JSPandaFile::JSPandaFile(const panda_file::File *pf, const CString &descriptor)
} }
checksum_ = pf->GetHeader()->checksum; checksum_ = pf->GetHeader()->checksum;
isNewVersion_ = pf_->GetHeader()->version > OLD_VERSION; 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 // 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. // as the vm. And make sure the first pandafile is the same at the compile time and runtime.
isFirstPandafile_ = true; isFirstPandafile_ = true;