mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
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:
parent
97e698db34
commit
f77f28fa84
3 changed files with 29 additions and 15 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue