Implement the class language element part II. (#203)

Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
Robert Fancsik 2019-05-14 02:10:13 +02:00 committed by yichoi
commit 1fc56fcf9a
54 changed files with 2002 additions and 100 deletions

View file

@ -171,6 +171,7 @@ ScriptParser::ScriptParserResult ScriptParser::parse(StringView scriptSource, St
program->scopeContext()->m_hasWith = parentCodeBlock->hasWith();
program->scopeContext()->m_hasCatch = parentCodeBlock->hasCatch();
program->scopeContext()->m_hasYield = parentCodeBlock->hasYield();
program->scopeContext()->m_isClassConstructor = parentCodeBlock->isClassConstructor();
topCodeBlock = generateCodeBlockTreeFromASTWalker(m_context, scriptSource, script, program->scopeContext(), parentCodeBlock);
topCodeBlock->m_isEvalCodeInFunction = true;
topCodeBlock->m_isInWithScope = parentCodeBlock->m_isInWithScope;