I'm currently working on a challenge which involves writing JavaScript players for a board game.
I've also recently discovered private fields in JavaScript (a recent addition), which I thought would be useful to prevent entries from accessing forbidden objects and cheating the game.
The only trouble is that private fields are currently not supported by Firefox (see Mozilla Docs for private fields).
So here are my options:
- Use the private field and explain on the ticket that the UI version of the game is not usable in Firefox.
- Remove the private field and describe on the ticket that a certain attribute is out-of-bounds. (I'd also need to manually check answers for it's use).
So what's the right answer in this situation? Restrict the field manually or programmatically?