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(ivy): verify bootstrapped types are Components #28386

Conversation

AndrewKushnir
Copy link
Contributor

Prior to this change we didn't verify types passed to bootstrap as a part of NgModule semantics check. Now we verify whether all types passed to bootstrap are actually Components.

The way we handle this is a bit different with VE, when VE throws an error, in Ivy we reject the Promise returned by bootstrapModule function. This seems more consistent with the rest of the cases in bootstrap_spec.ts when we reject the promise instead of throwing an error.

PR Type

What kind of change does this PR introduce?

  • Bugfix

Does this PR introduce a breaking change?

  • Yes
  • No

Prior to this change we didn't verify types passed to bootstrap as a part of NgModule semantics verification. Now we check whether all types passed to bootstrap are actually Components.
@AndrewKushnir AndrewKushnir added type: bug/fix action: review The PR is still awaiting reviews from at least one requested reviewer target: major This PR is targeted for the next major release comp: ivy labels Jan 26, 2019
@AndrewKushnir AndrewKushnir requested a review from a team as a code owner January 26, 2019 02:26
@ngbot ngbot bot added this to the needsTriage milestone Jan 26, 2019
@kara kara removed the action: review The PR is still awaiting reviews from at least one requested reviewer label Jan 29, 2019
@kara
Copy link
Contributor

kara commented Jan 29, 2019

presubmit

@AndrewKushnir AndrewKushnir removed the request for review from mhevery January 29, 2019 22:09
@AndrewKushnir AndrewKushnir added the action: merge The PR is ready for merge by the caretaker label Jan 29, 2019
@jasonaden jasonaden closed this in 7d9aa67 Jan 30, 2019
vetom pushed a commit to vetom/angular that referenced this pull request Jan 31, 2019
Prior to this change we didn't verify types passed to bootstrap as a part of NgModule semantics verification. Now we check whether all types passed to bootstrap are actually Components.

PR Close angular#28386
@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 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes target: major This PR is targeted for the next major release type: bug/fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants