fs: define constants with const
Define fs
constants using const
. In the tests that I've done, it appears that v8 is able to optimize const
. Suggesting this as an alternative to #507. If this is acceptable, I'd be interested in updating other constants throughout the JS codebase.