Bug 1131352 - Part 1: Fix codegen issue. r=smaug

This commit is contained in:
Jose Antonio Olivera Ortega 2015-05-24 05:45:00 -04:00
parent d398f244f0
commit 1fde4d00db

View File

@ -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():