1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:38:12 +00:00

LibJS: Use MUST() where applicable

This commit is contained in:
Linus Groh 2021-10-03 15:57:26 +01:00
parent 7cd3f7de61
commit 4d5bd092ea
14 changed files with 58 additions and 56 deletions

View file

@ -393,7 +393,7 @@ Object* get_super_constructor(VM& vm)
auto& active_function = verify_cast<FunctionEnvironment>(env).function_object();
// 5. Let superConstructor be ! activeFunction.[[GetPrototypeOf]]().
auto* super_constructor = active_function.internal_get_prototype_of().release_value();
auto* super_constructor = MUST(active_function.internal_get_prototype_of());
// 6. Return superConstructor.
return super_constructor;