browserify / detective

Find all calls to require() no matter how deeply nested using a proper walk of the AST
Other
414 stars 61 forks source link

Use acorn-node defaults for syntax options. #81

Closed goto-bus-stop closed 5 years ago

goto-bus-stop commented 6 years ago

acorn-node tries to sync its ecmaVersion and such with Node.js. We can just rely on it to fill in the default value so we don't have to manually update detective to match.

This adds support for optional catch bindings which are an ES2019 (ecmaVersion: 10) feature.

As the other option defaults here match the ones in acorn-node, this is a semver minor change.

Fixes https://github.com/browserify/browserify/issues/1872