Skip to content

Debug.fail hit in bindThisPropertyAssignment #22888

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

Closed
sheetalkamat opened this issue Mar 26, 2018 · 3 comments
Closed

Debug.fail hit in bindThisPropertyAssignment #22888

sheetalkamat opened this issue Mar 26, 2018 · 3 comments
Assignees
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@sheetalkamat
Copy link
Member

Code

a.js file

this.a = 10;

tsc a.js --allowJS

Expected behavior:
no failure
Actual behavior:

Error: Debug Failure. SourceFile
    at bindThisPropertyAssignment (c:\TypeScript\built\local\tsc.js:23135:30)
    at bindWorker (c:\TypeScript\built\local\tsc.js:22848:29)
    at bind (c:\TypeScript\built\local\tsc.js:22739:13)
    at visitNode (c:\TypeScript\built\local\tsc.js:14173:24)
    at Object.forEachChild (c:\TypeScript\built\local\tsc.js:14412:24)
    at bindEachChild (c:\TypeScript\built\local\tsc.js:21543:16)
    at bindChildrenWorker (c:\TypeScript\built\local\tsc.js:21644:21)
    at bindChildren (c:\TypeScript\built\local\tsc.js:21513:17)
    at bind (c:\TypeScript\built\local\tsc.js:22750:21)
    at c:\TypeScript\built\local\tsc.js:21519:94

Related Issues:
Reported in #21140 (comment)

@mhegazy mhegazy added the Bug A bug in TypeScript label Mar 26, 2018
@mhegazy mhegazy added this to the TypeScript 2.8.2 milestone Mar 26, 2018
@mhegazy
Copy link
Contributor

mhegazy commented Mar 26, 2018

@sandersn can you take a look for a fix for 2.8.2 please.

@sandersn
Copy link
Member

The assert was added in #22643, which is not in 2.8, so the fix doesn't need to be in 2.8. I'll fix it for 2.9 instead.

@mhegazy
Copy link
Contributor

mhegazy commented Mar 26, 2018

thanks for the clarification.

@mhegazy mhegazy added the Fixed A PR has been merged for this issue label Mar 28, 2018
@microsoft microsoft locked and limited conversation to collaborators Jul 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

3 participants