Currently, SquirrelFish doesn't throw exceptions for invalid regular expression constants. The exception gets created, but there is no VM_CHECK_EXCEPTION() in the body of op_new_regexp, so it gets ignored. However, we should really just create the code to throw the exception at compile time. This affects the JavaScriptCore regression test ecma_3/RegExp/regress-188206.js.
Created attachment 20807 [details] Proposed patch This patch fixes the test and is a 0.7% progression on SunSpider, because of the better code path in op_new_regexp.
Comment on attachment 20807 [details] Proposed patch r=me
Landed r32537