rbuckton / reflect-metadata

Prototype for a Metadata Reflection API for ECMAScript
https://rbuckton.github.io/reflect-metadata
Apache License 2.0
3.21k stars 184 forks source link

getMetadataKeys throw TypeError on IE #69

Open ghost opened 7 years ago

ghost commented 7 years ago

I am getting following error on calling getMetadataKeys on target object only on IE browser. Code works fine on chrome and firefox -

TypeError
   at GetIterator (https://localhost:8787/public/reflect-metadata/reflect-metadata.js:821:13)
   at OrdinaryOwnMetadataKeys (https://localhost:8787/public/reflect-metadata/reflect-metadata.js:640:9)
   at OrdinaryMetadataKeys (https://localhost:8787/public/reflect-metadata/reflect-metadata.js:603:9)
   at OrdinaryMetadataKeys (https://localhost:8787/public/reflect-metadata/reflect-metadata.js:607:9)
   at getMetadataKeys (https://localhost:8787/public/reflect-metadata/reflect-metadata.js:417:9)
   at validator.recursivelyValidateObject (https://localhost:8787/public/validation/validator.js:34:13)
   at validator.validateEntity (https://localhost:8787/public/validation/validator.js:21:13)
   at Anonymous function (https://localhost:8787/public/Entity.js:18:17)
   at k (https://localhost:8787/public/rsvp/rsvp.min.js:1:2994)
   at Y (https://localhost:8787/public/rsvp/rsvp.min.js:1:4671)

We have used property decorator.

ghost commented 7 years ago

I am facing above issue in version 0.1.10, downgrading to version 0.1.8 worked fine.

lucasheim commented 5 years ago

+1 in version 0.1.13

henriale commented 5 years ago

using core-js worked for me