mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 10:09:14 +00:00
LibJS: Convert internal_get_prototype_of() to ThrowCompletionOr
This commit is contained in:
parent
c8bf7f9c41
commit
5148150e1c
Notes:
sideshowbarker
2024-07-18 03:19:38 +09:00
Author: https://github.com/linusg
Commit: 5148150e1c
Pull-request: https://github.com/SerenityOS/serenity/pull/10266
Reviewed-by: https://github.com/IdanHo ✅
14 changed files with 48 additions and 70 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue