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

Self-referencing spread recursive loop #12808

Merged
merged 2 commits into from
Dec 12, 2016

Commits on Dec 9, 2016

  1. Use checkExpression in checkSpreadExpression

    Not checkExpressionCached. checkExpressionCached ignores ongoing control
    flow analysis, which causes the following loop to make the compiler
    recur infinitely:
    
    ```ts
    let a = []
    for (const x of []) {
        a = [...a]
    }
    ```
    sandersn committed Dec 9, 2016
    Configuration menu
    Copy the full SHA
    a52805f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    809706b View commit details
    Browse the repository at this point in the history