Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add flag to allow instrumentation of non-strict scripts. #863

Merged
merged 1 commit into from
Jul 5, 2018

Commits on Jun 29, 2018

  1. fix: Add flag to allow control of intrumenter esModules option.

    nyc was hard-coded to use `esModules: true` when running the
    instrumenter.  This could result in certain scripts not being
    instrumented.
    
    ```js
    function package() {
      return 'package is a reserved keyword'
    }
    
    console.log(package())
    ```
    
    Add command-line option `--es-modules true` to force strict parsing.
    
    Issue istanbuljs#796
    coreyfarrell committed Jun 29, 2018
    Configuration menu
    Copy the full SHA
    3578a2b View commit details
    Browse the repository at this point in the history