mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
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:
parent
69caa834f3
commit
c65c962762
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user