Fix arrow function this binding resolving if environment record is present (#4878)
This patch fixes #4872 and fixes #4876. JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik robert.fancsik@h-lab.eu
This commit is contained in:
@@ -566,6 +566,7 @@ vm_super_call (vm_frame_ctx_t *frame_ctx_p) /**< frame context */
|
||||
ecma_value_t completion_value;
|
||||
|
||||
ecma_environment_record_t *environment_record_p = ecma_op_get_environment_record (frame_ctx_p->lex_env_p);
|
||||
JERRY_ASSERT (environment_record_p);
|
||||
|
||||
if (!ecma_is_constructor (func_value))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user