Bug 797794 - need sync Preprocessor.py. r=bustage
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Thu, 08 Nov 2012 10:52:06 +0900
changeset 112653 30366a70c015e35bf03c76de0295459ceda294a9
parent 112652 284ad66e8bda6b833ccc0795778e5b17c58ef90d
child 112654 1ab2043a4669eda0a9088bc51b8a894bd312881c
push id23833
push useremorley@mozilla.com
push dateThu, 08 Nov 2012 10:20:57 +0000
treeherdermozilla-central@e0d7b394462b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs797794
milestone19.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 797794 - need sync Preprocessor.py. r=bustage
js/src/config/Preprocessor.py
--- a/js/src/config/Preprocessor.py
+++ b/js/src/config/Preprocessor.py
@@ -377,16 +377,18 @@ class Preprocessor:
   #   Strips blank lines from the output.
   def filter_emptyLines(self, aLine):
     if aLine == '\n':
       return ''
     return aLine
   # slashslash
   #   Strips everything after //
   def filter_slashslash(self, aLine):
+    if (aLine.find('//') == -1):
+      return aLine
     [aLine, rest] = aLine.split('//', 1)
     if rest:
       aLine += '\n'
     return aLine
   # spaces
   #   Collapses sequences of spaces into a single space
   def filter_spaces(self, aLine):
     return re.sub(' +', ' ', aLine).strip(' ')