Commit d9aa0f6
Preserve leading comments when transpiling JS
JS files often contain meta data in leading comments. We require these
comments to be able to execute JS code again after transpiling it
with the FuzzILTool.
This preserves such comments, whenever the `--outputPathJS` option
is used. The comments are extracted using information from the Babel
AST in the parser.
Bug: 442444727
Change-Id: Ibc9fda5f99a69123672b75970f9b5801c2695074
Reviewed-on: https://chrome-internal-review.googlesource.com/c/v8/fuzzilli/+/8839676
Reviewed-by: Matthias Liedtke <[email protected]>
Commit-Queue: Michael Achenbach <[email protected]>1 parent 62e4d2f commit d9aa0f6
File tree
4 files changed
+26
-7
lines changed- Sources
- FuzzILTool
- Fuzzilli
- Compiler/Parser
- Protobuf
4 files changed
+26
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
39 | 50 | | |
40 | 51 | | |
41 | 52 | | |
| |||
46 | 57 | | |
47 | 58 | | |
48 | 59 | | |
49 | | - | |
| 60 | + | |
50 | 61 | | |
51 | 62 | | |
52 | 63 | | |
| |||
667 | 678 | | |
668 | 679 | | |
669 | 680 | | |
670 | | - | |
| 681 | + | |
671 | 682 | | |
672 | 683 | | |
673 | 684 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
| 157 | + | |
156 | 158 | | |
157 | 159 | | |
158 | 160 | | |
| |||
2455 | 2457 | | |
2456 | 2458 | | |
2457 | 2459 | | |
2458 | | - | |
| 2460 | + | |
2459 | 2461 | | |
2460 | 2462 | | |
2461 | 2463 | | |
2462 | 2464 | | |
2463 | 2465 | | |
2464 | 2466 | | |
2465 | 2467 | | |
2466 | | - | |
| 2468 | + | |
| 2469 | + | |
2467 | 2470 | | |
2468 | 2471 | | |
2469 | 2472 | | |
2470 | 2473 | | |
2471 | 2474 | | |
2472 | 2475 | | |
| 2476 | + | |
| 2477 | + | |
| 2478 | + | |
2473 | 2479 | | |
2474 | | - | |
| 2480 | + | |
2475 | 2481 | | |
2476 | 2482 | | |
2477 | 2483 | | |
2478 | 2484 | | |
2479 | 2485 | | |
| 2486 | + | |
2480 | 2487 | | |
2481 | 2488 | | |
2482 | 2489 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
0 commit comments