mirror of
https://github.com/Basilisk-Development-Team/UXP-mirror.git
synced 2026-11-26 10:39:49 -05: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:
1 parent
a7f7a22319
commit
e2719e1dbf
2 files changed
+5
-1
No files matched your search
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user