Re:JavaScript async/await implemented in V8
by candu on Tuesday May 17, 2016 @11:18AM
(#11714353)
Coming from a background that includes some experience with C / C++, `const` here works as I expect it to. I'd prefer `const` even for the object reference case: I get errors on reassignment this way, and presumably it makes additional optimizations possible. To each their own, I suppose :)
There's also `Object.defineProperty()`, `Object.freeze()` for more control over mutability.
There's also `Object.defineProperty()`, `Object.freeze()` for more control over mutability.