File tree Expand file tree Collapse file tree 3 files changed +8
-12
lines changed
Expand file tree Collapse file tree 3 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 77 "url" : " https://github.com/browserify/acorn-node/issues"
88 },
99 "dependencies" : {
10- "acorn" : " ^7.4.0 " ,
11- "acorn-walk" : " ^7 .2.0" ,
10+ "acorn" : " ^8.8.2 " ,
11+ "acorn-walk" : " ^8 .2.0" ,
1212 "setprototypeof" : " ^1.2.0" ,
1313 "xtend" : " ^4.0.2"
1414 },
1515 "devDependencies" : {
1616 "@babel/cli" : " ^7.10.1" ,
1717 "@babel/core" : " ^7.10.1" ,
1818 "@babel/preset-env" : " ^7.10.1" ,
19- "acorn-class-fields" : " ^0.3.4" ,
20- "acorn-private-class-elements" : " ^0.2.5" ,
21- "acorn-static-class-features" : " ^0.2.2" ,
2219 "mkdirp" : " ^0.5.5" ,
2320 "npm-run-all" : " ^4.1.5" ,
2421 "standard" : " ^13.1.0" ,
4138 "lint" : " standard" ,
4239 "test" : " node test" ,
4340 "prepare" : " npm run build && node test" ,
44- "build:acorn-class-fields" : " babel node_modules/acorn-class-fields --out-dir lib/acorn-class-fields" ,
45- "build:acorn-static-class-features" : " babel node_modules/acorn-static-class-features --out-dir lib/acorn-static-class-features" ,
46- "build:acorn-private-class-elements" : " babel node_modules/acorn-private-class-elements --out-dir lib/acorn-private-class-elements" ,
4741 "build:self" : " babel src --out-dir ." ,
4842 "build" : " npm-run-all --parallel build:*"
4943 },
Original file line number Diff line number Diff line change 1+ 'use strict'
2+
13var acorn = require ( 'acorn' )
24
35var CJSParser = acorn . Parser
46 // Required paths should be relative to the package root, because Babel outputs this file there.
5- . extend ( require ( './lib/acorn-class-fields' ) )
6- . extend ( require ( './lib/acorn-static-class-features' ) )
7+ // .extend(require('./lib/acorn-class-fields'))
8+ // .extend(require('./lib/acorn-static-class-features'))
79 . extend ( defaultOptionsPlugin )
810var ESModulesParser = CJSParser
911
1012function mapOptions ( opts ) {
1113 if ( ! opts ) opts = { }
1214 return {
13- ecmaVersion : 2021 ,
15+ ecmaVersion : 2022 ,
1416 allowHashBang : true ,
1517 allowReturnOutsideFunction : true ,
1618 ...opts
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ test('parses object spread syntax', function (t) {
1717
1818test ( 'does not change main acorn module' , function ( t ) {
1919 t . throws ( function ( ) {
20- baseAcorn . parse ( 'var a = 10n' )
20+ baseAcorn . parse ( 'return 10n' , { ecmaVersion : 2022 } )
2121 } )
2222 t . end ( )
2323} )
You can’t perform that action at this time.
0 commit comments