A separate predefined RegExp
object is available in each window; that is,
each separate thread of JavaScript execution gets its own RegExp
object.
Because each script runs to completion without interruption in a thread, this assures that
different scripts do not overwrite values of the RegExp
object.