The previous `ecma_is_constructor` implementation did not checked if the target function was an arrow or generator function. This resulted in an incorrect execution for these function types. JerryScript-DCO-1.0-Signed-off-by: Peter Gal [email protected]