3 ms·
> Terser[0] has a special argument `--safari10` to emit code that's supported by Safari. I discovered this argument after running into the bug. So the problem
by illiarian 4y ago
> Terser[0] has a special argument `--safari10` to emit code that's supported by Safari. I discovered this argument after running into the bug.
So the problem is with the tool, not with the Safari it seems. Without an explanation what "non-standard" is about Safari 10/11 it's on the same level as the rest of hand wringing on HN.
- recursive 4y ago> So the problem is with the tool, not with the Safari it seems. You're making an assumption. I'm not sure where you're getting that. From what I recall, it was common `const` or parameter declarations in nested scopes. Safari was (is?) unambiguously wrong. Edit: here's the bug: https://bugs.webkit.org/show_bug.cgi?id=171041 https://bugs.webkit.org/show_bug.cgi?id=171041