mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-29 10:02:14 +00:00
Revise function call & Realm
* Revise Object::getPrototypeFromConstructor. we should get prototype from context of consturctor * We should pass Optional<Object*> instead of Value with newTarget. * Give correct prototype value for function prototypes and functions * Implement %ThrowTypeError% correctly Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
3f63741714
commit
1bd124fc1b
56 changed files with 642 additions and 646 deletions
|
|
@ -26,13 +26,13 @@ namespace Escargot {
|
|||
|
||||
Object* ScriptGeneratorFunctionObject::createFunctionPrototypeObject(ExecutionState& state)
|
||||
{
|
||||
Object* prototype = new Object(state, state.context()->globalObject()->generatorPrototype());
|
||||
Object* prototype = new Object(state, m_codeBlock->context()->globalObject()->generatorPrototype());
|
||||
return prototype;
|
||||
}
|
||||
|
||||
class ScriptGeneratorFunctionObjectThisValueBinder {
|
||||
public:
|
||||
Value operator()(ExecutionState& calleeState, ScriptGeneratorFunctionObject* self, const Value& thisArgument, bool isStrict)
|
||||
Value operator()(ExecutionState& callerState, ExecutionState& calleeState, ScriptGeneratorFunctionObject* self, const Value& thisArgument, bool isStrict)
|
||||
{
|
||||
Value thisValue = self->thisValue();
|
||||
if (thisValue.isEmpty()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue