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 78bcba3188
commit 8e2299bb2a

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