summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-09-28 23:30:17 +0100
committerLinus Groh <mail@linusgroh.de>2021-09-29 23:49:53 +0100
commit5148150e1ccdce78c84d848dd873bc31b247c781 (patch)
treee36429195f695cb4307a0903d71d52e69a7c11b0 /Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp
parentc8bf7f9c41cde8a77799426ca8ed037852ba5942 (diff)
downloadserenity-5148150e1ccdce78c84d848dd873bc31b247c781.zip
LibJS: Convert internal_get_prototype_of() to ThrowCompletionOr
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp b/Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp
index 96fc7b3bca..5c489a3ec4 100644
--- a/Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp
+++ b/Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp
@@ -140,7 +140,7 @@ JS_DEFINE_NATIVE_FUNCTION(ObjectConstructor::get_prototype_of)
return {};
// 2. Return ? obj.[[GetPrototypeOf]]().
- return object->internal_get_prototype_of();
+ return TRY_OR_DISCARD(object->internal_get_prototype_of());
}
// 20.1.2.21 Object.setPrototypeOf ( O, proto ), https://tc39.es/ecma262/#sec-object.setprototypeof