I'm looking at this reflect-metadata shim, it shows methods available on Reflect
object like Reflect.defineMetadata
and Reflect.getOwnMetadata
. The MDN page on Reflect object doesn't list these methods. Are those two different Reflect
objects?
Asked
Active
Viewed 291 times
1

Max Koretskyi
- 101,079
- 60
- 333
- 488
-
reflect-metadata seems to be targetting es-next where the reflect object is in es2015. – Daniel A. White Jan 26 '17 at 11:34
-
@DanielA.White, thanks, so do you think that's different Reflect object, or the same object but enhanced? – Max Koretskyi Jan 26 '17 at 11:43
-
Maybe. You should ask that library – Daniel A. White Jan 26 '17 at 13:11
-
@DanielA.White, got it, I'll ask and put an answer here) – Max Koretskyi Jan 26 '17 at 17:01
1 Answers
1
The reflect-metadata
package is extending that namespace so by default that method is not available in the original Reflect
Prototype but this package is extending those functions in the same API to leverage the benefit of storing metadata.

Hitesh Gupta
- 42
- 2