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

@ -1110,7 +1110,7 @@ Value Object::call(ExecutionState& state, const Value& callee, const Value& this
}
// https://www.ecma-international.org/ecma-262/10.0/#sec-construct
Object* Object::construct(ExecutionState& state, const Value& constructor, const size_t argc, NULLABLE Value* argv, Object* newTarget)
Value Object::construct(ExecutionState& state, const Value& constructor, const size_t argc, NULLABLE Value* argv, Object* newTarget)
{
// If newTarget was not passed, let newTarget be F.
if (newTarget == nullptr) {