1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:37:35 +00:00

LibJS: Convert internal_get_prototype_of() to ThrowCompletionOr

This commit is contained in:
Linus Groh 2021-09-28 23:30:17 +01:00
parent c8bf7f9c41
commit 5148150e1c
14 changed files with 48 additions and 70 deletions

View file

@ -580,9 +580,7 @@ Value ForInStatement::execute(Interpreter& interpreter, GlobalObject& global_obj
}
}
}
object = object->internal_get_prototype_of();
if (interpreter.exception())
return {};
object = TRY_OR_DISCARD(object->internal_get_prototype_of());
}
return last_value;
}