4 ms·
It's actually very hard to make a bullet proof test. Here's a way to spoof your test :) > var n = 0; window.__defineGetter__('module', function () { return n
by vjeux 14y ago
It's actually very hard to make a bullet proof test. Here's a way to spoof your test :)
> var n = 0; window.__defineGetter__('module', function () { return n++; })
> this.module !== module
true
- etler 14y agoYeah, I shouldn't say "bullet proof". But basically a simple way to not reserve any variable names. You can definitely get around it if you're determined but if you do that you probably want the script to run that way anyways, and that's fine. I just didn't like how existing checks made it a hard requirement for end users to not use certain variable names.