mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 11:42:13 +03:00
1b28766c26
swc_ecma_parser: - parser now take comments by reference
15 lines
244 B
JavaScript
15 lines
244 B
JavaScript
// Do not generate like this
|
|
// if(cond)with(cond2)if(cond3)debugger;else ok();
|
|
//
|
|
//
|
|
// See https://github.com/Constellation/escodegen/issues/49
|
|
if (a) {
|
|
with (b){
|
|
if (c) {
|
|
debugger;
|
|
}
|
|
}
|
|
} else {
|
|
d();
|
|
}
|