mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +00:00
LibJS: Return specified object from Object.setPrototypeOf()
We were leaking an empty value.
This commit is contained in:
committed by
Andreas Kling
parent
a60a5bc70a
commit
1a64bdd80c
@@ -103,7 +103,7 @@ Value ObjectConstructor::set_prototype_of(Interpreter& interpreter)
|
||||
if (interpreter.exception())
|
||||
return {};
|
||||
object->set_prototype(&const_cast<Object&>(interpreter.argument(1).as_object()));
|
||||
return {};
|
||||
return object;
|
||||
}
|
||||
|
||||
Value ObjectConstructor::is_extensible(Interpreter& interpreter)
|
||||
|
||||
Reference in New Issue
Block a user