| Index: test/mjsunit/regexp.js
|
| diff --git a/test/mjsunit/regexp.js b/test/mjsunit/regexp.js
|
| index 8d776ad5fb2488cae8076f385626638fb9c4365e..24e1b21e849bea2187469c20f98494f7f061bb90 100644
|
| --- a/test/mjsunit/regexp.js
|
| +++ b/test/mjsunit/regexp.js
|
| @@ -676,3 +676,17 @@ assertEquals(["bc"], re.exec("zimzomzumbc"));
|
| assertFalse(re.test("c"));
|
| assertFalse(re.test(""));
|
|
|
| +// Valid syntax in ES5.
|
| +re = RegExp("(?:x)*");
|
| +re = RegExp("(x)*");
|
| +
|
| +// Syntax extension relative to ES5, for matching JSC (and ES3).
|
| +// Shouldn't throw.
|
| +re = RegExp("(?=x)*");
|
| +re = RegExp("(?!x)*");
|
| +
|
| +// Should throw. Shouldn't hit asserts in debug mode.
|
| +assertThrows("RegExp('(*)')");
|
| +assertThrows("RegExp('(?:*)')");
|
| +assertThrows("RegExp('(?=*)')");
|
| +assertThrows("RegExp('(?!*)')");
|
|
|