mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 12:12:16 +03:00
6896a83d54
swc_ecma_codegen: - Emit pending semi on `~`. (#2091)
2 lines
188 B
JavaScript
2 lines
188 B
JavaScript
function test(list){var cur=list.findIndex(function(p){return 1==p});~cur||(cur=list.findIndex(function(p){return 0!==p}));for(var _i=0;_i<list.length;_i++)cur+=list[_i].value;return cur}
|