mozilla/rhino — pull request #140 by tntim96 (2014-05-22 09:31:58+00:00)
Title: 'undefined' pattern should be treated as empty string in RegExp constructor

http://www.ecma-international.org/ecma-262/5.1/#sec-15.10.4.1
https://sourceforge.net/p/htmlunit/bugs/1599/