summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/RegExp/constructor-regexp-unicode.js
blob: b348c34a01525d51f38d8b0faa2dc432fe6db60b (plain)
1
2
3
4
5
6
7
8
9
var BUGNUMBER = 1274393;
var summary = "RegExp constructor should check the pattern syntax again when adding unicode flag.";

print(BUGNUMBER + ": " + summary);

assertThrowsInstanceOf(() => RegExp(/\-/, "u"), SyntaxError);

if (typeof reportCompare === "function")
    reportCompare(true, true);