Skip to content

Commit

Permalink
fix(String): add es.string.replaceAll to es.string alias since it is …
Browse files Browse the repository at this point in the history
…now in stage 4
  • Loading branch information
wessberg committed Oct 22, 2020
1 parent 2687e8a commit 8d1cb3e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/constant/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ export const constant: IConstant = {
"es.promise.any": {
library: "core-js",
relativePaths: ["modules/esnext.promise.any.js"],
// TODO: Update when MDN or Caniuse Compatibility is added
features: ["javascript.builtins.Promise.any"],
version: environment.NPM_PACKAGE_DEPENDENCIES_CORE_JS,
dependencies: ["es.promise.constructor"],
Expand Down Expand Up @@ -805,7 +804,8 @@ export const constant: IConstant = {
"es.string.sup",
"es.string.trim",
"es.string.trim-start",
"es.string.trim-end"
"es.string.trim-end",
"es.string.replace-all"
]
},
"es.string.at": {
Expand Down Expand Up @@ -837,8 +837,7 @@ export const constant: IConstant = {
"es.string.replace-all": {
library: "core-js",
relativePaths: ["modules/esnext.string.replace-all.js"],
// TODO: Update when MDN or Caniuse Compatibility is added
features: [],
features: ["javascript.builtins.String.replaceAll"],
version: environment.NPM_PACKAGE_DEPENDENCIES_CORE_JS,
dependencies: [],
contexts: ALL_CONTEXTS
Expand Down Expand Up @@ -2695,7 +2694,7 @@ export const constant: IConstant = {
]
},
"esnext.string": {
polyfills: ["es.string.at", "es.string.code-points", "es.string.match-all", "es.string.replace-all"]
polyfills: ["es.string.at", "es.string.code-points", "es.string.match-all"]
},
"esnext.symbol": {
polyfills: ["es.symbol.pattern-match"]
Expand Down

0 comments on commit 8d1cb3e

Please sign in to comment.