mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
1. implement Object.prototype.__proto__
2. remove __proto__ in Object Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
6bebfa43fa
commit
30356c1d81
17 changed files with 167 additions and 213 deletions
|
|
@ -12,16 +12,6 @@ ArrayObject::ArrayObject(ExecutionState& state)
|
|||
setPrototype(state, state.context()->globalObject()->arrayPrototype());
|
||||
}
|
||||
|
||||
Value ArrayObject::getLengthSlowCase(ExecutionState& state)
|
||||
{
|
||||
return getOwnProperty(state, ObjectPropertyName(state.context()->staticStrings().length)).value(state);
|
||||
}
|
||||
|
||||
bool ArrayObject::setLengthSlowCase(ExecutionState& state, const Value& value)
|
||||
{
|
||||
return defineOwnProperty(state, ObjectPropertyName(state, state.context()->staticStrings().length), ObjectPropertyDescriptor(value));
|
||||
}
|
||||
|
||||
ObjectGetResult ArrayObject::getOwnProperty(ExecutionState& state, const ObjectPropertyName& P) ESCARGOT_OBJECT_SUBCLASS_MUST_REDEFINE
|
||||
{
|
||||
ObjectGetResult v = getFastModeValue(state, P);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue