mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-29 10:02:14 +00:00
1. implement instanceof, in, delete operator
2. VariableDeclaratorNode does not affect execute result 3. optimize Object get, set in interpreter Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
b2ea88b251
commit
11e625f373
26 changed files with 386 additions and 114 deletions
|
|
@ -59,6 +59,16 @@ void GlobalEnvironmentRecord::setMutableBinding(ExecutionState& state, const Ato
|
|||
m_globalObject->setThrowsExceptionWhenStrictMode(state, name, V, m_globalObject);
|
||||
}
|
||||
|
||||
bool GlobalEnvironmentRecord::deleteBinding(ExecutionState& state, const AtomicString& name)
|
||||
{
|
||||
return m_globalObject->deleteOwnProperty(state, name);
|
||||
}
|
||||
|
||||
EnvironmentRecord::BindingSlot GlobalEnvironmentRecord::hasBinding(ExecutionState& state, const AtomicString& atomicName)
|
||||
{
|
||||
return EnvironmentRecord::BindingSlot(this, m_globalObject->findPropertyIndex(state, atomicName));
|
||||
}
|
||||
|
||||
void DeclarativeEnvironmentRecordNotIndexded::createMutableBinding(ExecutionState& state, const AtomicString& name, bool canDelete)
|
||||
{
|
||||
ASSERT(canDelete == false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue