Skip to content

Conversation

ghost
Copy link

@ghost ghost commented Feb 8, 2018

Fixes #20787 -- the error was that one of the symbols in completionData was undefined, so had to go over every place we add symbols and assert that it's defined. (Did not add an assert if we're accessing properties on the symbol anyway, which would crash before pushing the symbol.)
Also fixes #20563 which was due to symbols itself being undefined.

@ghost ghost requested a review from armanio123 February 8, 2018 16:37
@ghost ghost force-pushed the defined_symbols branch from cb9f8b8 to ad97244 Compare February 8, 2018 16:53
return value;
}

export function assertEachDefined<T, A extends ReadonlyArray<T>>(value: A): A {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a required message tag here as well.. it will be much simpler to understand what is going on with a message

@ghost ghost merged commit 2a17825 into master Feb 8, 2018
@ghost ghost deleted the defined_symbols branch February 8, 2018 18:20
@ghost ghost mentioned this pull request Mar 29, 2018
@microsoft microsoft locked and limited conversation to collaborators Jul 3, 2018
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant