From 8b5eb9e773c1103da83ce820a1564e463520fcba Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 8 Oct 2024 14:06:01 +0900 Subject: [PATCH] test: updates test cases extracted from test262 (#205) Co-authored-by: ota-meshi <16508807+ota-meshi@users.noreply.github.com> --- ...de-property-escapes-and-regexp-v-flag.json | 225 ++++++++++++++++++ 1 file changed, 225 insertions(+) create mode 100644 test/fixtures/parser/literal/test262/Symbol.matchAll-and-regexp-unicode-property-escapes-and-regexp-v-flag.json diff --git a/test/fixtures/parser/literal/test262/Symbol.matchAll-and-regexp-unicode-property-escapes-and-regexp-v-flag.json b/test/fixtures/parser/literal/test262/Symbol.matchAll-and-regexp-unicode-property-escapes-and-regexp-v-flag.json new file mode 100644 index 0000000..fe17563 --- /dev/null +++ b/test/fixtures/parser/literal/test262/Symbol.matchAll-and-regexp-unicode-property-escapes-and-regexp-v-flag.json @@ -0,0 +1,225 @@ +{ + "_test262FileNames": [ + "test/built-ins/String/prototype/matchAll/regexp-prototype-matchAll-v-u-flag.js" + ], + "options": {}, + "patterns": { + "/(?:)/gu": { + "ast": { + "type": "RegExpLiteral", + "parent": null, + "start": 0, + "end": 8, + "raw": "/(?:)/gu", + "pattern": { + "type": "Pattern", + "parent": "♻️..", + "start": 1, + "end": 5, + "raw": "(?:)", + "alternatives": [ + { + "type": "Alternative", + "parent": "♻️../..", + "start": 1, + "end": 5, + "raw": "(?:)", + "elements": [ + { + "type": "Group", + "parent": "♻️../..", + "start": 1, + "end": 5, + "raw": "(?:)", + "alternatives": [ + { + "type": "Alternative", + "parent": "♻️../..", + "start": 4, + "end": 4, + "raw": "", + "elements": [] + } + ] + } + ] + } + ] + }, + "flags": { + "type": "Flags", + "parent": "♻️..", + "start": 6, + "end": 8, + "raw": "gu", + "global": true, + "ignoreCase": false, + "multiline": false, + "unicode": true, + "sticky": false, + "dotAll": false, + "hasIndices": false, + "unicodeSets": false + } + } + }, + "/\\P{ASCII}/gu": { + "ast": { + "type": "RegExpLiteral", + "parent": null, + "start": 0, + "end": 13, + "raw": "/\\P{ASCII}/gu", + "pattern": { + "type": "Pattern", + "parent": "♻️..", + "start": 1, + "end": 10, + "raw": "\\P{ASCII}", + "alternatives": [ + { + "type": "Alternative", + "parent": "♻️../..", + "start": 1, + "end": 10, + "raw": "\\P{ASCII}", + "elements": [ + { + "type": "CharacterSet", + "parent": "♻️../..", + "start": 1, + "end": 10, + "raw": "\\P{ASCII}", + "kind": "property", + "strings": false, + "key": "ASCII", + "value": null, + "negate": true + } + ] + } + ] + }, + "flags": { + "type": "Flags", + "parent": "♻️..", + "start": 11, + "end": 13, + "raw": "gu", + "global": true, + "ignoreCase": false, + "multiline": false, + "unicode": true, + "sticky": false, + "dotAll": false, + "hasIndices": false, + "unicodeSets": false + } + } + }, + "/\\P{ASCII}/gv": { + "ast": { + "type": "RegExpLiteral", + "parent": null, + "start": 0, + "end": 13, + "raw": "/\\P{ASCII}/gv", + "pattern": { + "type": "Pattern", + "parent": "♻️..", + "start": 1, + "end": 10, + "raw": "\\P{ASCII}", + "alternatives": [ + { + "type": "Alternative", + "parent": "♻️../..", + "start": 1, + "end": 10, + "raw": "\\P{ASCII}", + "elements": [ + { + "type": "CharacterSet", + "parent": "♻️../..", + "start": 1, + "end": 10, + "raw": "\\P{ASCII}", + "kind": "property", + "strings": false, + "key": "ASCII", + "value": null, + "negate": true + } + ] + } + ] + }, + "flags": { + "type": "Flags", + "parent": "♻️..", + "start": 11, + "end": 13, + "raw": "gv", + "global": true, + "ignoreCase": false, + "multiline": false, + "unicode": false, + "sticky": false, + "dotAll": false, + "hasIndices": false, + "unicodeSets": true + } + } + }, + "/𠮷/gu": { + "ast": { + "type": "RegExpLiteral", + "parent": null, + "start": 0, + "end": 6, + "raw": "/𠮷/gu", + "pattern": { + "type": "Pattern", + "parent": "♻️..", + "start": 1, + "end": 3, + "raw": "𠮷", + "alternatives": [ + { + "type": "Alternative", + "parent": "♻️../..", + "start": 1, + "end": 3, + "raw": "𠮷", + "elements": [ + { + "type": "Character", + "parent": "♻️../..", + "start": 1, + "end": 3, + "raw": "𠮷", + "value": 134071 + } + ] + } + ] + }, + "flags": { + "type": "Flags", + "parent": "♻️..", + "start": 4, + "end": 6, + "raw": "gu", + "global": true, + "ignoreCase": false, + "multiline": false, + "unicode": true, + "sticky": false, + "dotAll": false, + "hasIndices": false, + "unicodeSets": false + } + } + } + } +} \ No newline at end of file