Open lunks opened 9 years ago
Is not it missing the erb
extension?
Actually. I know the problem, one of the JSON.generate call is missing quirks_mode: true
. (By default it only allows you to make {...} and [...], this flag allows bare strings, numbers, booleans and nulls as well.
We just have to verify it wasn't intentional and add the flag.
Specifically: https://github.com/rails/execjs/blob/1a92790be698d051a58760e2a90a0e31a9763b29/lib/execjs/external_runtime.rb#L46
The only thing that is giving me minor doubts is that the original commit that introduced it did it in one place but not the other, but I'm pretty sure it was just a mistake.
It has the erb
extension. It seems the issue was lingering in the old repo and no one noticed it.
I'm just moving a previous issue from the old repo here. Is there a way of doing this using ExecJS > 1.4.0?