Skip to content
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

fix(jsii-diff): handle recursive types #558

Merged
merged 1 commit into from
Jun 26, 2019
Merged

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Jun 26, 2019

Structural type checking would recurse endlessly if a struct had a
member with the same type as itself, or the same type as a struct that
contained itself.

Add a cache to prevent infinite recursion.

Also in this commit: tryFindFqn no longer explodes if the referenced
assembly couldn't be found, but simply returns undefined as it should.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Structural type checking would recurse endlessly if a struct had a
member with the same type as itself, or the same type as a struct that
contained itself.

Add a cache to prevent infinite recursion.

Also in this commit: `tryFindFqn` no longer explodes if the referenced
assembly couldn't be found, but simply returns `undefined` as it should.
@rix0rrr rix0rrr requested a review from a team as a code owner June 26, 2019 08:56
@ghost ghost requested a review from RomainMuller June 26, 2019 08:56
@rix0rrr rix0rrr merged commit 3c43be1 into master Jun 26, 2019
@rix0rrr rix0rrr deleted the huijbers/jsii-diff-recursion branch June 26, 2019 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants