mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Implement NamedPropertyHandler API to ObjectTemplate
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
773007bec6
commit
25588dcb01
37 changed files with 831 additions and 254 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue