Files
test-repo/changelog_unreleased/javascript/18163.md
T
3bc46da961 Add missing parentheses in bitwise operators (#18163)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-10-31 20:45:37 +08:00

247 B

Add missing parentheses in bitwise operators (#18163 by @fs0414)

// Input
1 << (bit % 8);
1 >> (bit - 8);

// Prettier stable
1 << bit % 8;
1 >> (bit - 8);

// Prettier main
1 << (bit % 8);
1 >> (bit - 8);