Closed Bug 797794 Opened 13 years ago Closed 13 years ago

Preprocessor.py -Fslashslash does'nt work

Categories

(Firefox Build System :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla19

People

(Reporter: teramako, Assigned: btm)

Details

Attachments

(2 files)

User Agent: Opera/9.80 (Windows NT 5.1; U; Edition Next; ja) Presto/2.11.310 Version/12.50 Steps to reproduce: python Preprocessor.py -Fslashslash doesn't work Actual results: $ cat test.js // comment $ python Preprocessor.py -Fslashslash test.js Traceback (most recent call last): File "Preprocessor.py", line 475, in <module> main() File "Preprocessor.py", line 460, in main pp.handleCommandLine(None, True) File "Preprocessor.py", line 157, in handleCommandLine self.do_include(f, False) File "Preprocessor.py", line 445, in do_include self.handleLine(l) File "Preprocessor.py", line 226, in handleLine self.write(aLine) File "Preprocessor.py", line 136, in write filteredLine = self.applyFilters(aLine) File "Preprocessor.py", line 121, in applyFilters aLine = f[1](aLine) File "Preprocessor.py", line 385, in filter_slashslash [aLine, rest] = aLine.split('//', 1) ValueError: need more than 1 value to unpack
Attached file test script
Status: UNCONFIRMED → NEW
Ever confirmed: true
this error caused by blank line with -Fslashslash option. double slashed comment does not related.
Attachment #670235 - Flags: review?
Attachment #670235 - Flags: review? → review?(ted.mielczarek)
You need to assign a reviewer. (Maybe Ted?)
Attachment #668381 - Attachment mime type: application/octet-stream → text/plain
Comment on attachment 670235 [details] [diff] [review] Fix for -Fslashslash option. Review of attachment 670235 [details] [diff] [review]: ----------------------------------------------------------------- Sorry for the review delay! This is fine, but it would be nice to have a unit test for it.
Attachment #670235 - Flags: review?(ted) → review+
Assignee: nobody → btm
bustage fix (we have to sync config/* and js/src/config/*) https://hg.mozilla.org/integration/mozilla-inbound/rev/30366a70c015
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: