mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
LexicalEnvironment should be allocated in heap with deleteing ID expression
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
10771f054e
commit
98850e4d34
4 changed files with 35 additions and 1 deletions
|
|
@ -68,6 +68,15 @@ CodeBlock* ScriptParser::generateCodeBlockTreeFromASTWalker(Context* ctx, String
|
|||
#endif
|
||||
|
||||
if (parentCodeBlock) {
|
||||
|
||||
if (scopeCtx->m_hasDeleteId) {
|
||||
CodeBlock* c = codeBlock;
|
||||
while (c) {
|
||||
c->m_canAllocateEnvironmentOnStack = false;
|
||||
c = c->parentCodeBlock();
|
||||
}
|
||||
}
|
||||
|
||||
if (codeBlock->hasEvalWithCatchYield() || codeBlock->isFunctionDeclarationWithSpecialBinding()) {
|
||||
CodeBlock* c = codeBlock;
|
||||
while (c) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue