Since language specification published, this repo should be archived
The ECMA language specification has been released: https://262.ecma-international.org/6.0/#sec-reflect.get
In order to avoid confusing, you can archive this repo. The final specification not fully use syntax with this repo mentioned.
I just express my suggestion. Thank you for your contribution. Hope everything will go well.
Reflect.get is not the same as “get metadata”.
as you can see here: https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Reflect/set
the actual specification of Reflect API doesn't support to set property with decoration over class or method. This is wrong. I misunderstand it.
// apply metadata via a decorator to a constructor
@Reflect.metadata(metadataKey, metadataValue)
class C {
// apply metadata via a decorator to a method (property)
@Reflect.metadata(metadataKey, metadataValue)
method() {
}
}
That proposal doesn’t contain a Reflect.getMetadata function.
While yes, the decorator metadata proposal is now officially at Stage 3, I don't plan to archive this project as there are many consumers who cannot migrate to native decorators yet due to the lack of support for parameter decorators. I plan to continue to support this package at least until such time as all of the supported use cases are fully covered natively, even if I no longer intend to propose this to TC39.