Skip to content

fix(compiler): report an error for recursive module references - #21054

Merged
alxhub merged 1 commit into
angular:masterfrom
chuckjaz:i19979
Dec 20, 2017
Merged

alxhub merged 1 commit into
angular:masterfrom
chuckjaz:i19979

Conversation

@chuckjaz

Copy link
Copy Markdown
Contributor

Modules that directly or indirectly export or imported themselves
reports an error instead of generating a stack fault.

Fixes: #19979

PR Type

What kind of change does this PR introduce?

[x] Bugfix

What is the current behavior?

Issue Number: #19979

See commit description above.

What is the new behavior?

An error is emitted instead of a stack fault.

Does this PR introduce a breaking change?

[ ] Yes
[x] No

@chuckjaz chuckjaz added the target: patch This PR is targeted for the next patch release label Dec 16, 2017
Comment thread packages/compiler-cli/test/ngc_spec.ts Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

export -> import ?

Modules that directly or indirectly export or imported themselves
reports an error instead of generating a stack fault.

Fixes: angular#19979

@vicb vicb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, one nit for test name

@chuckjaz chuckjaz added the action: merge The PR is ready for merge by the caretaker label Dec 19, 2017
@alxhub
alxhub merged commit 33c0ee3 into angular:master Dec 20, 2017
@angular-automatic-lock-bot

Copy link
Copy Markdown

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
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: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ERROR in RangeError: Maximum call stack size exceeded on production build and faulty export on module

5 participants