1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 21:17:45 +00:00

LibJS: Convert get_identifier_reference() to ThrowCompletionOr

And while we're here add spec comments.
This commit is contained in:
davidot 2021-12-30 13:19:05 +01:00 committed by Linus Groh
parent 676554d3f8
commit d72022ba04
2 changed files with 14 additions and 5 deletions

View file

@ -193,7 +193,7 @@ public:
FlyString unwind_until_label() const { return m_unwind_until_label; }
ThrowCompletionOr<Reference> resolve_binding(FlyString const&, Environment* = nullptr);
Reference get_identifier_reference(Environment*, FlyString, bool strict, size_t hops = 0);
ThrowCompletionOr<Reference> get_identifier_reference(Environment*, FlyString, bool strict, size_t hops = 0);
template<typename T, typename... Args>
void throw_exception(GlobalObject& global_object, Args&&... args)