Closed
Bug 797794
Opened 13 years ago
Closed 13 years ago
Preprocessor.py -Fslashslash does'nt work
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla19
People
(Reporter: teramako, Assigned: btm)
Details
Attachments
(2 files)
|
21 bytes,
text/plain
|
Details | |
|
808 bytes,
patch
|
ted
:
review+
|
Details | Diff | Splinter Review |
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
Updated•13 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 2•13 years ago
|
||
this error caused by blank line with -Fslashslash option.
double slashed comment does not related.
| Assignee | ||
Comment 3•13 years ago
|
||
Attachment #670235 -
Flags: review?
Updated•13 years ago
|
Attachment #670235 -
Flags: review? → review?(ted.mielczarek)
Comment 4•13 years ago
|
||
You need to assign a reviewer. (Maybe Ted?)
Updated•13 years ago
|
Attachment #668381 -
Attachment mime type: application/octet-stream → text/plain
Comment 5•13 years ago
|
||
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+
Updated•13 years ago
|
Assignee: nobody → btm
Comment 6•13 years ago
|
||
Target Milestone: --- → mozilla19
Comment 7•13 years ago
|
||
bustage fix (we have to sync config/* and js/src/config/*)
https://hg.mozilla.org/integration/mozilla-inbound/rev/30366a70c015
Comment 8•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/1b344f7a2e81
https://hg.mozilla.org/mozilla-central/rev/30366a70c015
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•