mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-29 10:02:14 +00:00
fix object set receiver bug
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
98711e6b91
commit
3a9c739cc1
1 changed files with 3 additions and 3 deletions
|
|
@ -1407,10 +1407,10 @@ void ByteCodeInterpreter::setObjectPreComputedCaseOperationCacheMiss(ExecutionSt
|
|||
inlineCache.m_cachedhiddenClassChain.push_back(newItem);
|
||||
proto = obj->getPrototype(state);
|
||||
}
|
||||
bool s = orgObject->set(state, ObjectPropertyName(state, name), value, obj);
|
||||
bool s = orgObject->set(state, ObjectPropertyName(state, name), value, orgObject);
|
||||
if (UNLIKELY(!s)) {
|
||||
if (state.inStrictMode())
|
||||
obj->throwCannotWriteError(state, name);
|
||||
orgObject->throwCannotWriteError(state, name);
|
||||
|
||||
inlineCache.invalidateCache();
|
||||
return;
|
||||
|
|
@ -1421,7 +1421,7 @@ void ByteCodeInterpreter::setObjectPreComputedCaseOperationCacheMiss(ExecutionSt
|
|||
}
|
||||
|
||||
auto result = orgObject->get(state, ObjectPropertyName(state, name), orgObject);
|
||||
if (!result.isDataProperty()) {
|
||||
if (!result.hasValue() || !result.isDataProperty()) {
|
||||
inlineCache.invalidateCache();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue