Bug 1257037 part 4. Remove the worker-only XXX comments from CGWrapGlobalMethod, since we never have worker descriptors for globals anyway. r=khuey

This commit is contained in:
Boris Zbarsky 2016-07-08 00:37:54 -04:00
parent 69caa834f3
commit c65c962762

View File

@ -3801,13 +3801,6 @@ class CGWrapGlobalMethod(CGAbstractMethod):
else:
chromeProperties = "nullptr"
if self.descriptor.workers:
fireOnNewGlobal = """// XXXkhuey can't do this yet until workers can lazy resolve.
// JS_FireOnNewGlobalObject(aCx, aReflector);
"""
else:
fireOnNewGlobal = ""
if self.descriptor.hasUnforgeableMembers:
declareProto = "JS::Handle<JSObject*> canonicalProto =\n"
assertProto = (
@ -3847,7 +3840,6 @@ class CGWrapGlobalMethod(CGAbstractMethod):
$*{unforgeable}
$*{slots}
$*{fireOnNewGlobal}
return true;
""",
@ -3858,8 +3850,7 @@ class CGWrapGlobalMethod(CGAbstractMethod):
properties=properties,
chromeProperties=chromeProperties,
unforgeable=CopyUnforgeablePropertiesToInstance(self.descriptor, True),
slots=InitMemberSlots(self.descriptor, True),
fireOnNewGlobal=fireOnNewGlobal)
slots=InitMemberSlots(self.descriptor, True))
class CGUpdateMemberSlotsMethod(CGAbstractStaticMethod):