Page MenuHomePhabricator

Allow while(true) in the JS codebase
ClosedPublic

Authored by ashoat on Mar 24 2023, 12:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 15, 7:55 PM
Unknown Object (File)
Sun, Dec 15, 7:55 PM
Unknown Object (File)
Sun, Dec 15, 7:54 PM
Unknown Object (File)
Sun, Dec 15, 7:42 PM
Unknown Object (File)
Nov 26 2024, 5:32 PM
Unknown Object (File)
Nov 22 2024, 9:40 PM
Unknown Object (File)
Nov 11 2024, 2:04 PM
Unknown Object (File)
Nov 8 2024, 8:34 AM
Subscribers
None

Details

Summary

I find that it's sometimes better for readability for the condition of a loop to be determined by a break call inside the body of the loop. More context here.

Test Plan

I edited a file and added a while (true) { break; } line. Before this diff it causes an ESLint error, but afterwards it didn't

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable