Closed franjohn21 closed 5 years ago
Afaik, Object.getOwnPropertyDescriptor
is supported in Node 6. (see https://node.green/#ES2015-misc-Object-static-methods-accept-primitives-Object-getOwnPropertyDescriptor)
The link you shared is for Object.getOwnPropertyDescriptors
(with a trailing "s"), which, indeed is not part of node 6.
Are you sure it's breaking? The code run in node 6 on the CI without issue. Could you provide more info on the error maybe?
^^ Good catch. The code I pasted uses both getOwnPropertyDescriptor
and getOwnPropertyDescriptors
however. I'll update my original description to reference the one that is actually problematic
Oh my. I should have paid more attention. I believe they indeed fixed the issue in the latest version, because I cannot reproduce the issue when I recompile the code.
I'm on it to fix it and release a new version. Thanks for reporting the issue.
@tleunen Really appreciate the fast turn around. Thank you!
This package's built code is shipping
Object.getOwnPropertyDescriptors
which is not supported in Node v6. https://node.green/#ES2017-features-Object-static-methods-Object-getOwnPropertyDescriptorsSince this repo is using babel-preset-env and targeting a Node version of 6, I wouldn't expect this to break and it may be indicative of an error in babel itself. E.g. potentially related to https://github.com/babel/babel/issues/9382
Code snippet that is breaking:
My current workaround is to import
@babel/polyfill
in my.eslintrc.js
until we can upgrade our versions of Node.Version Info