X Tutup
Skip to content

fix(lang): avoid infinite loop when calling assert()#4983

Closed
pkozlowski-opensource wants to merge 1 commit intoangular:masterfrom
pkozlowski-opensource:assert_noop
Closed

fix(lang): avoid infinite loop when calling assert()#4983
pkozlowski-opensource wants to merge 1 commit intoangular:masterfrom
pkozlowski-opensource:assert_noop

Conversation

@pkozlowski-opensource
Copy link
Copy Markdown
Member

The current code doesn't function properly:

  • assert are never activated
  • even if activated would result in infinite loop

Since the code is broken and blocks other use-cases
this commit turns assert into noop. A proper solution
for asserts will be part of #2830

Fixes #4981

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.

add a TODO with a reference to the issue number ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It is below, in the assert function

@vicb
Copy link
Copy Markdown
Contributor

vicb commented Oct 28, 2015

One small comment, otherwise LGTM

@mhevery mhevery added the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Oct 28, 2015
The current code doesn't function properly:
- assert are never activated
- even if activated would result in infinite loop

Since the code is broken and blocks other use-cases
this commit turns assert into noop. A proper solution
for asserts will be part of angular#2830

Fixes angular#4981
@pkozlowski-opensource pkozlowski-opensource added action: merge The PR is ready for merge by the caretaker and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Oct 28, 2015
@mary-poppins
Copy link
Copy Markdown

Merging PR #4983 on behalf of @pkozlowski-opensource to branch presubmit-pkozlowski-opensource-pr-4983.

@mary-poppins mary-poppins removed the action: merge The PR is ready for merge by the caretaker label Oct 28, 2015
@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 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Including code from facade/lang.ts twice leads to RangeError: Maximum call stack size exceeded errors

5 participants

X Tutup