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:
parent
7cd3f7de61
commit
4d5bd092ea
14 changed files with 58 additions and 56 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue