Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For union or intersection types use constituent serialized type if it…
…s same for all of the constituent types Fixes #10809
- Loading branch information
1 parent
c40234f
commit 40c2a53
Showing
2 changed files
with
34 additions
and
3 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
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
40c2a53
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sheetalkamat I'm having an issue with this code path when compiling inside of an aspnet core program using WebPack Middleware (UseWebpackDevMiddleware) for union types where one of the types is null. Is there a reason it's not handled and throws an assert? At this time it would be a pain to try and replicate the error, and I'm not really sure why it doesn't fail outside of the middleware, i.e. Visual Studio 2017 RC code editor and webpack command compile just fine, but fails at runtime when debugging inside a hacked (modified to add debugging) middleware using node-inspector. I tracked it down to this code commit where the assert is triggering due to SyntaxKind.NullKeyword (94) is not being handled.
40c2a53
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wizarrc, please file a new issue and share some repro code/steps to allow us to diagnose the issue better.