Skip to content

Debug.fail hit in bindThisPropertyAssignment #22888

Closed
@sheetalkamat

Description

@sheetalkamat

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)

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions