mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
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:
parent
7731895659
commit
4d6d8ae543
6 changed files with 47 additions and 28 deletions
|
|
@ -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());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue