diff --git a/test/fixtures/parser/literal/test262/Symbol.match-and-regexp-v-flag.json b/test/fixtures/parser/literal/test262/Symbol.match-and-regexp-v-flag.json new file mode 100644 index 0000000..27bdf69 --- /dev/null +++ b/test/fixtures/parser/literal/test262/Symbol.match-and-regexp-v-flag.json @@ -0,0 +1,170 @@ +{ + "_test262FileNames": [ + "test/built-ins/String/prototype/match/regexp-prototype-match-v-flag.js" + ], + "options": {}, + "patterns": { + "/./gv": { + "ast": { + "type": "RegExpLiteral", + "parent": null, + "start": 0, + "end": 5, + "raw": "/./gv", + "pattern": { + "type": "Pattern", + "parent": "♻️..", + "start": 1, + "end": 2, + "raw": ".", + "alternatives": [ + { + "type": "Alternative", + "parent": "♻️../..", + "start": 1, + "end": 2, + "raw": ".", + "elements": [ + { + "type": "CharacterSet", + "parent": "♻️../..", + "start": 1, + "end": 2, + "raw": ".", + "kind": "any" + } + ] + } + ] + }, + "flags": { + "type": "Flags", + "parent": "♻️..", + "start": 3, + "end": 5, + "raw": "gv", + "global": true, + "ignoreCase": false, + "multiline": false, + "unicode": false, + "sticky": false, + "dotAll": false, + "hasIndices": false, + "unicodeSets": true + } + } + }, + "/\\p{Script=Han}/gv": { + "ast": { + "type": "RegExpLiteral", + "parent": null, + "start": 0, + "end": 18, + "raw": "/\\p{Script=Han}/gv", + "pattern": { + "type": "Pattern", + "parent": "♻️..", + "start": 1, + "end": 15, + "raw": "\\p{Script=Han}", + "alternatives": [ + { + "type": "Alternative", + "parent": "♻️../..", + "start": 1, + "end": 15, + "raw": "\\p{Script=Han}", + "elements": [ + { + "type": "CharacterSet", + "parent": "♻️../..", + "start": 1, + "end": 15, + "raw": "\\p{Script=Han}", + "kind": "property", + "strings": false, + "key": "Script", + "value": "Han", + "negate": false + } + ] + } + ] + }, + "flags": { + "type": "Flags", + "parent": "♻️..", + "start": 16, + "end": 18, + "raw": "gv", + "global": true, + "ignoreCase": false, + "multiline": false, + "unicode": false, + "sticky": false, + "dotAll": false, + "hasIndices": false, + "unicodeSets": true + } + } + }, + "/𠮷/g": { + "ast": { + "type": "RegExpLiteral", + "parent": null, + "start": 0, + "end": 5, + "raw": "/𠮷/g", + "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": 2, + "raw": "\ud842", + "value": 55362 + }, + { + "type": "Character", + "parent": "♻️../..", + "start": 2, + "end": 3, + "raw": "\udfb7", + "value": 57271 + } + ] + } + ] + }, + "flags": { + "type": "Flags", + "parent": "♻️..", + "start": 4, + "end": 5, + "raw": "g", + "global": true, + "ignoreCase": false, + "multiline": false, + "unicode": false, + "sticky": false, + "dotAll": false, + "hasIndices": false, + "unicodeSets": false + } + } + } + } +} \ No newline at end of file diff --git a/test/fixtures/parser/literal/test262/Symbol.matchAll-and-regexp-v-flag.json b/test/fixtures/parser/literal/test262/Symbol.matchAll-and-regexp-v-flag.json new file mode 100644 index 0000000..cdf7a8a --- /dev/null +++ b/test/fixtures/parser/literal/test262/Symbol.matchAll-and-regexp-v-flag.json @@ -0,0 +1,117 @@ +{ + "_test262FileNames": [ + "test/built-ins/String/prototype/matchAll/regexp-prototype-matchAll-v-flag.js" + ], + "options": {}, + "patterns": { + "/(?:)/gv": { + "ast": { + "type": "RegExpLiteral", + "parent": null, + "start": 0, + "end": 8, + "raw": "/(?:)/gv", + "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": "gv", + "global": true, + "ignoreCase": false, + "multiline": false, + "unicode": false, + "sticky": false, + "dotAll": false, + "hasIndices": false, + "unicodeSets": true + } + } + }, + "/𠮷/gv": { + "ast": { + "type": "RegExpLiteral", + "parent": null, + "start": 0, + "end": 6, + "raw": "/𠮷/gv", + "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": "gv", + "global": true, + "ignoreCase": false, + "multiline": false, + "unicode": false, + "sticky": false, + "dotAll": false, + "hasIndices": false, + "unicodeSets": true + } + } + } + } +} \ No newline at end of file diff --git a/test/fixtures/parser/literal/test262/Symbol.search-and-regexp-v-flag.json b/test/fixtures/parser/literal/test262/Symbol.search-and-regexp-v-flag.json new file mode 100644 index 0000000..dd05da2 --- /dev/null +++ b/test/fixtures/parser/literal/test262/Symbol.search-and-regexp-v-flag.json @@ -0,0 +1,116 @@ +{ + "_test262FileNames": [ + "test/built-ins/String/prototype/search/regexp-prototype-search-v-flag.js.js" + ], + "options": {}, + "patterns": { + "/a/v": { + "ast": { + "type": "RegExpLiteral", + "parent": null, + "start": 0, + "end": 4, + "raw": "/a/v", + "pattern": { + "type": "Pattern", + "parent": "♻️..", + "start": 1, + "end": 2, + "raw": "a", + "alternatives": [ + { + "type": "Alternative", + "parent": "♻️../..", + "start": 1, + "end": 2, + "raw": "a", + "elements": [ + { + "type": "Character", + "parent": "♻️../..", + "start": 1, + "end": 2, + "raw": "a", + "value": 97 + } + ] + } + ] + }, + "flags": { + "type": "Flags", + "parent": "♻️..", + "start": 3, + "end": 4, + "raw": "v", + "global": false, + "ignoreCase": false, + "multiline": false, + "unicode": false, + "sticky": false, + "dotAll": false, + "hasIndices": false, + "unicodeSets": true + } + } + }, + "/b./v": { + "ast": { + "type": "RegExpLiteral", + "parent": null, + "start": 0, + "end": 5, + "raw": "/b./v", + "pattern": { + "type": "Pattern", + "parent": "♻️..", + "start": 1, + "end": 3, + "raw": "b.", + "alternatives": [ + { + "type": "Alternative", + "parent": "♻️../..", + "start": 1, + "end": 3, + "raw": "b.", + "elements": [ + { + "type": "Character", + "parent": "♻️../..", + "start": 1, + "end": 2, + "raw": "b", + "value": 98 + }, + { + "type": "CharacterSet", + "parent": "♻️../..", + "start": 2, + "end": 3, + "raw": ".", + "kind": "any" + } + ] + } + ] + }, + "flags": { + "type": "Flags", + "parent": "♻️..", + "start": 4, + "end": 5, + "raw": "v", + "global": false, + "ignoreCase": false, + "multiline": false, + "unicode": false, + "sticky": false, + "dotAll": false, + "hasIndices": false, + "unicodeSets": true + } + } + } + } +} \ No newline at end of file