mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Simplify InterfaceConstructorBehavior
This commit is contained in:
parent
89126b44d7
commit
109a297309
2 changed files with 31 additions and 36 deletions
|
@ -2072,12 +2072,9 @@ class CGInterfaceObjectJSClass(CGThing):
|
|||
"depth": self.descriptor.prototypeDepth
|
||||
}
|
||||
return """\
|
||||
static INTERFACE_OBJECT_OPS: js::jsapi::ClassOps =
|
||||
NonCallbackInterfaceObjectClass::ops(%(constructorBehavior)s);
|
||||
|
||||
static InterfaceObjectClass: NonCallbackInterfaceObjectClass =
|
||||
NonCallbackInterfaceObjectClass::new(
|
||||
&INTERFACE_OBJECT_OPS,
|
||||
&%(constructorBehavior)s,
|
||||
%(representation)s,
|
||||
PrototypeList::ID::%(id)s,
|
||||
%(depth)s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue