Skip to content

Return second provider when it matches in getProviderNoCache - #176

Open
Bruno Peralva (peralva) wants to merge 1 commit into
microsoft:mainfrom
peralva:fix-second-provider
Open

Bruno Peralva (peralva) wants to merge 1 commit into
microsoft:mainfrom
peralva:fix-second-provider

Conversation

@peralva

Copy link
Copy Markdown

When the second registered metadata provider matches a target, getProviderNoCache returned the first provider instead. This fixes the lookup in Reflect.ts, ReflectLite.ts and ReflectNoConflict.ts, and adds a test that registers a second provider and checks that getProvider returns it.

Fixes #162

@peralva

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

This branch has not been deployed

No deployments
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.

Wrong cached provider returned

1 participant