Skip to content

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

Merged
rix0rrr merged 1 commit intomasterfrom
huijbers/jsii-diff-recursion
Jun 26, 2019
Merged

fix(jsii-diff): handle recursive types#558
rix0rrr merged 1 commit intomasterfrom
huijbers/jsii-diff-recursion

Conversation

@rix0rrr
Copy link
Copy Markdown
Collaborator

@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