Implement NamedPropertyHandler API to ObjectTemplate

Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
Seonghyun Kim 2020-07-20 21:51:41 +09:00 committed by Boram Bae
commit 25588dcb01
37 changed files with 831 additions and 254 deletions

View file

@ -65,7 +65,7 @@ Value BoundFunctionObject::call(ExecutionState& state, const Value& thisValue, c
}
// https://www.ecma-international.org/ecma-262/6.0/#sec-bound-function-exotic-objects-construct-argumentslist-newtarget
Object* BoundFunctionObject::construct(ExecutionState& state, const size_t calledArgc, Value* calledArgv, Object* newTarget)
Value BoundFunctionObject::construct(ExecutionState& state, const size_t calledArgc, Value* calledArgv, Object* newTarget)
{
ASSERT(m_boundTargetFunction && m_boundTargetFunction->isConstructor());
@ -88,6 +88,6 @@ Object* BoundFunctionObject::construct(ExecutionState& state, const size_t calle
}
// Return Construct(target, args, newTarget).
return Object::construct(state, m_boundTargetFunction, mergedArgc, mergedArgv, newTarget);
return Object::construct(state, m_boundTargetFunction, mergedArgc, mergedArgv, newTarget).toObject(state);
}
}