mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +03:00
97514a7549
swc_ecma_parser: - Fix parsing of typescript generics in jsx context. (#2161) swc_ecma_transforms_base: - `fixer`: Handle assignment with patterns in arrow body. (#2163) swc_ecma_utils: - `as_bool`: Handle assignment with operator correctly. (#2165)
6 lines
98 B
JavaScript
6 lines
98 B
JavaScript
var bit = 0;
|
|
var sum = 0;
|
|
sum += (bit ^= 1) ? 0 : 1;
|
|
sum += (bit ^= 1) ? 0 : 1;
|
|
console.log(sum);
|