Make NonCallbackInterfaceObjectClass::new unsafe

This commit is contained in:
Anthony Ramine 2016-04-23 13:43:49 +02:00
parent edb58040c8
commit a45f117838
2 changed files with 4 additions and 3 deletions

View file

@ -1908,9 +1908,10 @@ class CGInterfaceObjectJSClass(CGThing):
"depth": self.descriptor.prototypeDepth
}
return """\
static InterfaceObjectClass: NonCallbackInterfaceObjectClass =
static InterfaceObjectClass: NonCallbackInterfaceObjectClass = unsafe {
NonCallbackInterfaceObjectClass::new(%(constructor)s, %(representation)s,
PrototypeList::ID::%(id)s, %(depth)s);
PrototypeList::ID::%(id)s, %(depth)s)
};
""" % args