96df210cc5
It wasn't properly checked if the given object was an arrow function, therefore it always got wrongly casted into `ecma_arrow_function_t`. Fixes issue #2110 *plus fixing a typo in the comments JerryScript-DCO-1.0-Signed-off-by: Daniel Balla dballa@inf.u-szeged.hu