This is my proposal for disallowing object initialisers with duplicate keys. Opened at the request of @jashkenas.
Revert "removing code that restricts duplicate key names and associat…
This reverts commit 7c29ea4.
-ise -> -ize, at the request of @jashkenas
Thanks for putting this on a branch. Much appreciated.
just curious — why indirect eval is a shitty solution? It doesn't hit performance / minifiers like direct one.
Creating strings of code and evaluating them dynamically is bad style. You can't always statically type or analyse it. Using it to parse a single value with a known format in the way that we are, though, is an exception, and is not very detestable.
So not terrible, but still worth avoiding if we can. It's a trade-off.
bumpin' @michaelficarra ?