-
Notifications
You must be signed in to change notification settings - Fork 12.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30719 from andrewbranch/bug/30668
Fix crash when binding deep module.exports assignment
- Loading branch information
Showing
5 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
tests/baselines/reference/jsFileCompilationBindDeepExportsAssignment.errors.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
tests/cases/compiler/a.js(1,9): error TS2339: Property 'a' does not exist on type 'typeof import("tests/cases/compiler/a")'. | ||
|
||
|
||
==== tests/cases/compiler/a.js (1 errors) ==== | ||
exports.a.b.c = 0; | ||
~ | ||
!!! error TS2339: Property 'a' does not exist on type 'typeof import("tests/cases/compiler/a")'. | ||
|
4 changes: 4 additions & 0 deletions
4
tests/baselines/reference/jsFileCompilationBindDeepExportsAssignment.symbols
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
=== tests/cases/compiler/a.js === | ||
exports.a.b.c = 0; | ||
>exports : Symbol("tests/cases/compiler/a", Decl(a.js, 0, 0)) | ||
|
12 changes: 12 additions & 0 deletions
12
tests/baselines/reference/jsFileCompilationBindDeepExportsAssignment.types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
=== tests/cases/compiler/a.js === | ||
exports.a.b.c = 0; | ||
>exports.a.b.c = 0 : 0 | ||
>exports.a.b.c : any | ||
>exports.a.b : any | ||
>exports.a : any | ||
>exports : typeof import("tests/cases/compiler/a") | ||
>a : any | ||
>b : any | ||
>c : any | ||
>0 : 0 | ||
|
6 changes: 6 additions & 0 deletions
6
tests/cases/compiler/jsFileCompilationBindDeepExportsAssignment.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// @allowJs: true | ||
// @noEmit: true | ||
// @checkJs: true | ||
// @filename: a.js | ||
|
||
exports.a.b.c = 0; |