Pass the NativeProperties struct to CreateInterfaceObjects2.

This will simplify adding more kinds of properties, such as static attributes.
This commit is contained in:
Ms2ger 2014-06-21 12:43:35 +02:00
parent 886d401ff0
commit 4964d2792e
2 changed files with 11 additions and 23 deletions

View file

@ -1933,12 +1933,7 @@ class CGCreateInterfaceObjectsMethod(CGAbstractMethod):
call = """return CreateInterfaceObjects2(aCx, aGlobal, aReceiver, parentProto,
&PrototypeClass, %s,
%s,
sNativeProperties.methods,
sNativeProperties.attrs,
sNativeProperties.consts,
sNativeProperties.staticMethods);""" % (
constructor,
domClass)
&sNativeProperties);""" % (constructor, domClass)
return CGList([
CGGeneric(getParentProto),