Fix an error in calculation of ExecutionPause length for Code Cache

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
This commit is contained in:
HyukWoo Park 2023-10-24 22:15:25 +09:00 committed by Patrick Kim
commit f77f28fa84
3 changed files with 29 additions and 15 deletions

View file

@ -419,12 +419,6 @@ ScriptParser::InitializeScriptResult ScriptParser::initializeScript(String* orig
if (LIKELY(needByteCodeGeneration)) {
try {
#if defined(ENABLE_CODE_CACHE)
// give up if there is top-level-await
if (topCodeBlock->isAsync()) {
cacheable = false;
deleteCodeBlockCacheInfo();
}
// Store cache
if (cacheable) {
codeCache->prepareCacheWriting(srcHash);