Index: test/mjsunit/harmony/regexp-named-captures.js |
diff --git a/test/mjsunit/harmony/regexp-named-captures.js b/test/mjsunit/harmony/regexp-named-captures.js |
index 9d6b9a95c7e0909e0cee0e27730e09c6be4d6520..b31eb3cee6c8909667e0ee37071283a780ae6633 100644 |
--- a/test/mjsunit/harmony/regexp-named-captures.js |
+++ b/test/mjsunit/harmony/regexp-named-captures.js |
@@ -177,6 +177,10 @@ assertEquals(["fst", "snd"], |
assertEquals(undefined, /(?<a>.)/u.exec("a").groups.__proto__); |
assertEquals("a", /(?<__proto__>a)/u.exec("a").groups.__proto__); |
+// Backslash as ID_Start and ID_Continue (v8:5868). |
+assertThrows("/(?<\\>.)/", SyntaxError); // '\' misclassified as ID_Start. |
+assertThrows("/(?<a\\>.)/", SyntaxError); // '\' misclassified as ID_Continue. |
+ |
// Backreference before the group (exercises the capture mini-parser). |
assertThrows("/\\1(?:.)/u", SyntaxError); |
assertThrows("/\\1(?<=a)./u", SyntaxError); |