File tree Expand file tree Collapse file tree 6 files changed +9
-7
lines changed Expand file tree Collapse file tree 6 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 77 class-methods-use-this : off
88 complexity : off
99 mysticatea/arrow-parens : off
10+ mysticatea/prefer-for-of : off
1011 prettier/prettier :
1112 - error
1213 - tabWidth : 4
Original file line number Diff line number Diff line change 2222 "mocha" : " ^5.0.1" ,
2323 "npm-run-all" : " ^4.1.2" ,
2424 "prettier" : " ^1.9.2" ,
25+ "rimraf" : " ^2.6.2" ,
2526 "rollup" : " ^0.56.1" ,
2627 "rollup-plugin-node-resolve" : " ^3.0.3" ,
2728 "rollup-plugin-sourcemaps" : " ^0.4.2" ,
Original file line number Diff line number Diff line change @@ -908,11 +908,11 @@ export class RegExpValidator {
908908 const c = String . fromCodePoint ( cp )
909909 this . raise ( `Unexpected character '${ c } '` )
910910 }
911- for ( const name of this . _backreferenceNames ) {
911+ this . _backreferenceNames . forEach ( name => {
912912 if ( ! this . _groupNames . has ( name ) ) {
913913 this . raise ( "Invalid named capture referenced" )
914914 }
915- }
915+ } )
916916 this . onPatternLeave ( start , this . index )
917917 }
918918
Original file line number Diff line number Diff line change 11import assert from "assert"
2- import { parseRegExpLiteral , ParserOptions } from "../src/index"
2+ import { parseRegExpLiteral , RegExpParser } from "../src/index"
33import { cloneWithoutCircular } from "../tools/clone-without-circular"
44import { Fixtures } from "./fixtures/parser/literal"
55
6- function generateAST ( source : string , options : ParserOptions ) : object {
6+ function generateAST ( source : string , options : RegExpParser . Options ) : object {
77 return JSON . parse (
88 Buffer . from (
99 JSON . stringify (
Original file line number Diff line number Diff line change 1313 "esModuleInterop" : true ,
1414 "forceConsistentCasingInFileNames" : true ,
1515 "lib" : [
16- " es2017 "
16+ " es2015 "
1717 ],
1818 "module" : " commonjs" ,
1919 "moduleResolution" : " node" ,
3131 "sourceMap" : true ,
3232 "sourceRoot" : " src" ,
3333 "strictNullChecks" : true ,
34- "target" : " es2015 "
34+ "target" : " es5 "
3535 },
3636 "include" : [
3737 " src/**/*.ts"
Original file line number Diff line number Diff line change 3131 "sourceMap" : true ,
3232 "sourceRoot" : " src" ,
3333 "strictNullChecks" : true ,
34- "target" : " es2015 "
34+ "target" : " es5 "
3535 },
3636 "include" : [
3737 " src/**/*.ts"
You can’t perform that action at this time.
0 commit comments