Bug 963382, part 1 - Split out MethodDefiner's JS implemented case into its own thing. r=bz

This commit is contained in:
Andrew McCreight 2014-08-21 13:56:11 -07:00
parent 569dcc73e7
commit 6507b9119d

View File

@ -2165,16 +2165,18 @@ class MethodDefiner(PropertyDefiner):
# automatically.
"condition": MemberCondition(None, None)
})
elif (descriptor.interface.isJSImplemented() and
descriptor.interface.hasInterfaceObject()):
self.chrome.append({
"name": '_create',
"nativeName": ("%s::_Create" % descriptor.name),
"methodInfo": False,
"length": 2,
"flags": "0",
"condition": MemberCondition(None, None)
})
if (descriptor.interface.isJSImplemented() and
descriptor.interface.hasInterfaceObject()):
if static:
self.chrome.append({
"name": '_create',
"nativeName": ("%s::_Create" % descriptor.name),
"methodInfo": False,
"length": 2,
"flags": "0",
"condition": MemberCondition(None, None)
})
self.unforgeable = unforgeable