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:
Robert Fancsik
2021-12-15 11:32:31 +01:00
committed by GitHub
parent 7e0aa086ec
commit 070096f30f
6 changed files with 90 additions and 8 deletions
+1
View File
@@ -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))
{