Reflect.getOwnMetadata gets metadata for parents
cehoffman opened this issue · 1 comments
cehoffman commented
Reflect.getOwnMetadata lacks a check for target.hasOwnProperty(metadataContainerKey)
and so will erroneously return the metadata from the parent prototype.
I discovered this when switching to the use this polyfill instead of core-js and one of my test cases on metadata exposure through class inheritance failed.
EisenbergEffect commented
We would love it if you could submit a PR to fix the issue :)