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
Родитель 8d3a2b1cfb
Коммит 0c96173882
1 изменённых файлов: 12 добавлений и 10 удалений

Просмотреть файл

@ -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