From 0fda3b895813dba67fedb6c2506c6c898760278f Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sun, 16 Aug 2020 15:16:32 -0700 Subject: [PATCH] [Fix] `split`: add a function name to the "broken capturing groups" shim --- es5-shim.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es5-shim.js b/es5-shim.js index 940e136e..dc32c9d5 100644 --- a/es5-shim.js +++ b/es5-shim.js @@ -1824,7 +1824,7 @@ var compliantExecNpcg = typeof (/()??/).exec('')[1] === 'undefined'; // NPCG: nonparticipating capturing group var maxSafe32BitInt = Math.pow(2, 32) - 1; - StringPrototype.split = function (separator, limit) { + StringPrototype.split = function split(separator, limit) { var string = String(this); if (typeof separator === 'undefined' && limit === 0) { return [];