Add new.target argument to Promise create (#4606)
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
@@ -455,7 +455,9 @@ ecma_builtin_promise_dispatch_construct (const ecma_value_t *arguments_list_p, /
|
||||
return ecma_raise_type_error (ECMA_ERR_MSG ("First parameter must be callable"));
|
||||
}
|
||||
|
||||
return ecma_op_create_promise_object (arguments_list_p[0], ECMA_VALUE_UNDEFINED);
|
||||
return ecma_op_create_promise_object (arguments_list_p[0],
|
||||
ECMA_VALUE_UNDEFINED,
|
||||
JERRY_CONTEXT (current_new_target_p));
|
||||
} /* ecma_builtin_promise_dispatch_construct */
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user