I just discovered the weirdest bug in some javascript code dealing with RegExp.test. I had a regular expression regexp declared inside a function and I had a closure that had a ...
This bit of code is from this answer.
I'm trying to understand how it works but I'm not getting it all.
What I think is happening is TEST_ERROR is a closure so ...