What is the root cause of this issue?

This line should never be run inside a Firefox Add-on, so I'm guessing the SDK does pre-processing?

I'm worried about this issue because the workaround is brittle. It relies on devs always testing on Firefox or always remembering about the workaround, and it also relies on the CoffeeScript compiler not doing any constant folding.