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

@ -73,10 +73,10 @@ Value ScriptGeneratorFunctionObject::call(ExecutionState& state, const Value& th
return FunctionObjectProcessCallGenerator::processCall<ScriptGeneratorFunctionObject, false, false, false, ScriptGeneratorFunctionObjectThisValueBinder, FunctionObjectNewTargetBinder, FunctionObjectReturnValueBinder>(state, this, thisValue, argc, argv, nullptr);
}
Object* ScriptGeneratorFunctionObject::construct(ExecutionState& state, const size_t argc, NULLABLE Value* argv, Object* newTarget)
Value ScriptGeneratorFunctionObject::construct(ExecutionState& state, const size_t argc, NULLABLE Value* argv, Object* newTarget)
{
ErrorObject::throwBuiltinError(state, ErrorObject::TypeError, "Generator cannot be invoked with 'new'");
ASSERT_NOT_REACHED();
return nullptr;
return Value();
}
}