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:
seonghyun kim 2017-05-15 16:44:54 +09:00
commit ef71d53298
16 changed files with 2418 additions and 32 deletions

View file

@ -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());