You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From looking at https://node.green/#ES2021-features--String-prototype-replaceAll, string.prototype.replaceAll is not supported in the latest version of the current LTS release (14.17.x), meaning that I believe core-js should polyfill this when using @babel/preset-env with a targets option of { node: "14.15.0" } and a corejs option of 3.16.2? From my testing, this is currently not the case. Please let me know if you cannot reproduce this yourself, and I'll try to provide a minimal case.
I believe these two sections of code are relevant to this problem:
As 85 isn't defined in the ChromeToNode mapping, I'm wondering what happens in this case? Does it (or is it supposed to) interpolate between the values that are defined for values that are not defined, meaning that 85 should map to 15.0 in this case? If not, then I guess to resolve this problem, we'd need to define an 85 mapping?
The text was updated successfully, but these errors were encountered:
joealden
changed the title
string.prototype.replaceAll not being polyfilled in Node v14.17.5es.string.replace-all not being polyfilled in Node v14 LTS
Aug 24, 2021
On core-js side all fine. It's a babel issue. Seems they should update built-ins definitions. They find the same problem an hour ago babel/website#2569 (comment), babel/babel#13701.
From looking at https://node.green/#ES2021-features--String-prototype-replaceAll,
string.prototype.replaceAll
is not supported in the latest version of the current LTS release (14.17.x
), meaning that I believecore-js
should polyfill this when using@babel/preset-env
with atargets
option of{ node: "14.15.0" }
and acorejs
option of3.16.2
? From my testing, this is currently not the case. Please let me know if you cannot reproduce this yourself, and I'll try to provide a minimal case.I believe these two sections of code are relevant to this problem:
core-js/packages/core-js-compat/src/data.mjs
Lines 1047 to 1051 in 4e72728
core-js/packages/core-js-compat/src/mapping.mjs
Lines 54 to 55 in 4e72728
As
85
isn't defined in theChromeToNode
mapping, I'm wondering what happens in this case? Does it (or is it supposed to) interpolate between the values that are defined for values that are not defined, meaning that85
should map to15.0
in this case? If not, then I guess to resolve this problem, we'd need to define an85
mapping?The text was updated successfully, but these errors were encountered: