2 ms·
Unfortunately, his tricks no longer work in current JS engines; it relies on using [].sort.call() which I believe used to return the global object but now t
by dherman 14y ago
Unfortunately, his tricks no longer work in current JS engines; it relies on using
[].sort.call()
which I believe used to return the global object but now throws an exception.
AFAICT, you need to add {} to make this work in current JS engines.
Dave