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(zone.js): check if process is defined when patching the GlobalErrors.install #45392

Closed
wants to merge 1 commit into from

Commits on Mar 19, 2022

  1. fix(zone.js): check if process is defined when patching the `Global…

    …Errors.install`
    
    Jasmine checks internally if `process` and `process.on` is defined. Otherwise,
    it installs the browser rejection handler through the `global.addEventListener`.
    This code may be run in the browser environment where `process` is not defined, and
    this will lead to a runtime exception since Webpack 5 removed automatic Node.js polyfills.
    
    PR Close angular#42260
    arturovt committed Mar 19, 2022
    Configuration menu
    Copy the full SHA
    4c2ad83 View commit details
    Browse the repository at this point in the history