diff --git a/packages/core-js/modules/es.string.replace.js b/packages/core-js/modules/es.string.replace.js index 5849da9df055..8392451baae7 100644 --- a/packages/core-js/modules/es.string.replace.js +++ b/packages/core-js/modules/es.string.replace.js @@ -96,7 +96,7 @@ require('../internals/fix-regexp-well-known-symbol-logic')( } return nativeReplace.call(replacement, symbols, function (match, ch) { var capture; - switch (ch[0]) { + switch (ch.charAt(0)) { case '$': return '$'; case '&': return matched; case '`': return str.slice(0, position);