HtmlUnit/htmlunit-rhino-fork — pull request #1 by tntim96 (2014-05-20 12:07:37+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/

Fixed with tests.