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(compiler): avoid a crash in ngc-wrapped. #23468

Closed
wants to merge 1 commit into from
Closed

Conversation

mprobst
Copy link
Contributor

@mprobst mprobst commented Apr 20, 2018

ng.performCompilation can return an undefined program, which is not handled by ngc-wrapped.

Avoid crashing by checking for the error return and returning the diagnostics.

`ng.performCompilation` can return an `undefined` program, which is not handled by ngc-wrapped.

Avoid crashing by checking for the error return and returning the diagnostics.
@mprobst mprobst requested a review from alexeagle April 20, 2018 12:53
@mprobst mprobst added the target: patch This PR is targeted for the next patch release label Apr 20, 2018
@mary-poppins
Copy link

You can preview ab41920 at https://pr23468-ab41920.ngbuilds.io/.

@alexeagle alexeagle added the merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note label Apr 21, 2018
@vicb vicb closed this in e1c4930 Apr 24, 2018
vicb pushed a commit that referenced this pull request Apr 24, 2018
`ng.performCompilation` can return an `undefined` program, which is not handled by ngc-wrapped.

Avoid crashing by checking for the error return and returning the diagnostics.
PR Close #23468
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 13, 2019
@mprobst mprobst deleted the mprobst-ngc-crash branch December 3, 2019 08:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants