Bug 1387149 - Remove outdated comment from Codegen.py. r=bz
authorEden Chuang <echuang@mozilla.com>
Wed, 09 Aug 2017 17:31:10 +0800
changeset 662400 227388c78b76409266f0be66bcaeaa4f84229aee
parent 662386 3b924184c333c508df0890c811e115a195e71e7a
child 662401 f13d106fc6789dc775808929d263272aaf75975b
push id79074
push userbmo:mstriemer@mozilla.com
push dateMon, 11 Sep 2017 17:17:14 +0000
reviewersbz
bugs1387149, 916644
milestone57.0a1
Bug 1387149 - Remove outdated comment from Codegen.py. r=bz Remove following outdated comment from Codegen.py # We don't enforce this for chrome in realease builds to avoid the addon # compat fallout of making that change. See bug 916644.
dom/bindings/Codegen.py
--- a/dom/bindings/Codegen.py
+++ b/dom/bindings/Codegen.py
@@ -1777,19 +1777,17 @@ class CGClassConstructor(CGAbstractStati
             chromeOnlyCheck = dedent("""
                 if (!nsContentUtils::ThreadsafeIsSystemCaller(cx)) {
                   return ThrowingConstructor(cx, argc, vp);
                 }
 
                 """)
 
         # Additionally, we want to throw if a caller does a bareword invocation
-        # of a constructor without |new|. We don't enforce this for chrome in
-        # realease builds to avoid the addon compat fallout of making that
-        # change. See bug 916644.
+        # of a constructor without |new|.
         #
         # Figure out the name of our constructor for error reporting purposes.
         # For unnamed webidl constructors, identifier.name is "constructor" but
         # the name JS sees is the interface name; for named constructors
         # identifier.name is the actual name.
         name = self._ctor.identifier.name
         if name != "constructor":
             ctorName = name