mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
allocate almost gc objects as typed gc object
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
e8689eed07
commit
dbbbdf2374
40 changed files with 506 additions and 105 deletions
|
|
@ -126,7 +126,7 @@ ScriptParser::ScriptParserResult ScriptParser::parse(StringView scriptSource, St
|
|||
try {
|
||||
ProgramNode* program = esprima::parseProgram(m_context, scriptSource, nullptr, strictFromOutside);
|
||||
|
||||
script = new Script(fileName);
|
||||
script = new Script(fileName, new StringView(scriptSource));
|
||||
CodeBlock* topCodeBlock;
|
||||
if (parentCodeBlock) {
|
||||
program->scopeContext()->m_hasEval = parentCodeBlock->hasEval();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue