1. implement Object.prototype.__proto__

2. remove __proto__ in Object

Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
seonghyun kim 2016-12-21 20:23:27 +09:00
commit 30356c1d81
17 changed files with 167 additions and 213 deletions

View file

@ -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);