Fix yield* with undefined return method. (#4126)

Fixes #4097.

JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
This commit is contained in:
Dániel Bátyai authored and GitHub committed 2020-08-11 14:01:18 +02:00
1 parent f761427a3e
commit 0c154306a8
3 files changed
+27 -2

No files matched your search

@@ -386,7 +386,7 @@ ecma_op_iterator_return (ecma_value_t iterator, /**< iterator value */
if (func_return == ECMA_VALUE_UNDEFINED)
{
return ecma_create_iter_result_object (value, true);
return ecma_create_iter_result_object (value, ECMA_VALUE_TRUE);
}
if (!ecma_is_value_object (func_return) || !ecma_op_is_callable (func_return))