mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
1. do not ASTScopeContext explicitly. it is used by ByteCode-genaration
2. alloc esprima::Error as Non-GC type. - it can be thrown. but, bdwgc can not see try-catch variable area. 3. Use own context when eval, function are invoked. 4. implement fake-Realm class for v8 vender test Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
34dad07c79
commit
5d56fd2bb4
14 changed files with 77 additions and 25 deletions
|
|
@ -132,10 +132,6 @@ CodeBlock* ScriptParser::generateCodeBlockTreeFromASTWalker(Context* ctx, String
|
|||
codeBlock->m_childBlocks[i] = generateCodeBlockTreeFromASTWalker(ctx, source, script, scopeCtx->m_childScopes[i], codeBlock);
|
||||
}
|
||||
|
||||
#ifdef NDEBUG
|
||||
delete scopeCtx;
|
||||
#endif
|
||||
|
||||
return codeBlock;
|
||||
}
|
||||
|
||||
|
|
@ -245,6 +241,7 @@ ScriptParser::ScriptParserResult ScriptParser::parse(StringView scriptSource, St
|
|||
error->message = orgError->message;
|
||||
error->name = orgError->name;
|
||||
error->errorCode = orgError->errorCode;
|
||||
delete orgError;
|
||||
}
|
||||
|
||||
ScriptParser::ScriptParserResult result(script, error);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue