mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-31 19:47:32 +09:00
Bug 1326453 - Part 3: Don't throw a TypeError when SetPrototypeOf for module namespace objects is called with null
This commit is contained in:
parent
307c8cb570
commit
50765b944e
2 changed files with 5 additions and 1 deletions
|
|
@ -345,6 +345,8 @@ bool
|
|||
ModuleNamespaceObject::ProxyHandler::setPrototype(JSContext* cx, HandleObject proxy,
|
||||
HandleObject proto, ObjectOpResult& result) const
|
||||
{
|
||||
if (!proto)
|
||||
return result.succeed();
|
||||
return result.failCantSetProto();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue