mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
Bug 1131352 - Part 1: Fix codegen issue. r=smaug
This commit is contained in:
parent
d398f244f0
commit
1fde4d00db
@ -11157,12 +11157,13 @@ def memberProperties(m, descriptor):
|
||||
props.isJsonifier = True
|
||||
elif (not m.isIdentifierLess() or m == descriptor.operations['Stringifier']):
|
||||
if not m.isStatic() and descriptor.interface.hasInterfacePrototypeObject():
|
||||
if m.returnsPromise() and descriptor.needsSpecialGenericOps():
|
||||
props.isPromiseReturningMethod = True
|
||||
if descriptor.needsSpecialGenericOps():
|
||||
if m.returnsPromise():
|
||||
props.isPromiseReturningMethod = True
|
||||
else:
|
||||
props.isGenericMethod = True
|
||||
if m.getExtendedAttribute("CrossOriginCallable"):
|
||||
props.isCrossOriginMethod = True
|
||||
elif descriptor.needsSpecialGenericOps():
|
||||
props.isGenericMethod = True
|
||||
elif m.isAttr():
|
||||
if not m.isStatic() and descriptor.interface.hasInterfacePrototypeObject():
|
||||
if m.hasLenientThis():
|
||||
|
Loading…
Reference in New Issue
Block a user