1. when executing Global::evalLocal, hasBinding->createMutableBinding sequence for createBinding is wrong. we should execute createMutableBinding alone.

there is right version of hasBinding for createMutableBinding in createMutableBinding already
2. builtin Function ctor should process "} {" input correctly
3. exclude more spider-monkey vendor test

Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
seonghyun kim 2017-03-21 15:30:21 +09:00
commit 4d6d8ae543
6 changed files with 47 additions and 28 deletions

View file

@ -145,9 +145,7 @@ Value Script::executeLocal(ExecutionState& state, Value thisValue, CodeBlock* pa
recordToAddVariable = e->record();
}
for (size_t i = 0; i < len; i++) {
if (recordToAddVariable->hasBinding(state, vec[i].m_name).m_index == SIZE_MAX) {
recordToAddVariable->createMutableBinding(state, vec[i].m_name, true);
}
recordToAddVariable->createMutableBinding(state, vec[i].m_name, true);
}
LexicalEnvironment* newEnvironment = new LexicalEnvironment(record, state.executionContext()->lexicalEnvironment());