mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
1. fix bug around catch variable binding, env binding
2. fix bug in StringBuilder 3. add vendor test data xml files Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
613cff9379
commit
ef71d53298
16 changed files with 2418 additions and 32 deletions
|
|
@ -43,8 +43,8 @@ Value Script::execute(ExecutionState& state, bool isEvalMode, bool needNewEnv, b
|
|||
LexicalEnvironment* env;
|
||||
ExecutionContext* prevEc;
|
||||
{
|
||||
InterpretedCodeBlock* globalCodeBlock = (needNewEnv) ? nullptr : m_topCodeBlock;
|
||||
LexicalEnvironment* globalEnvironment = new LexicalEnvironment(new GlobalEnvironmentRecord(state, globalCodeBlock, state.context()->globalObject(), isEvalMode), nullptr);
|
||||
InterpretedCodeBlock* globalCodeBlock = m_topCodeBlock;
|
||||
LexicalEnvironment* globalEnvironment = new LexicalEnvironment(new GlobalEnvironmentRecord(state, globalCodeBlock, state.context()->globalObject(), isEvalMode, !needNewEnv), nullptr);
|
||||
if (UNLIKELY(needNewEnv)) {
|
||||
// NOTE: ES5 10.4.2.1 eval in strict mode
|
||||
prevEc = new ExecutionContext(state.context(), state.executionContext(), globalEnvironment, m_topCodeBlock->isStrict());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue