Skip to content

Commit

Permalink
fixup! [[FIX]] Support RegExp Unicode property escapes
Browse files Browse the repository at this point in the history
  • Loading branch information
jugglinmike committed Mar 1, 2021
1 parent f14636b commit 6f9d9e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/unit/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -1081,6 +1081,10 @@ exports.regexp.unicodePropertyEscape = function (test) {
.addError(1, 6, "Invalid regular expression.")
.test("void /\\p{hasOwnProperty}/u;", { esversion: 9 });

TestRun(test, "rejects invalid values")
.addError(1, 6, "Invalid regular expression.")
.test("void /\\p{General_Category=hasOwnProperty}/u;", { esversion: 9 });

TestRun(test, "tolerates errors without `u` flag")
.test([
"void /\\p/;",
Expand Down

0 comments on commit 6f9d9e4

Please sign in to comment.