Urara-Blog/node_modules/.pnpm-store/v3/files/cc/4244788c0d8005fd6ae8f2d9fefa09622c2a71c357718053e790540ae2e603ce125d19490a420ca938116651e3f65433d7de972828b0cba7efa02f6c3c0376
2022-08-14 01:14:53 +08:00

14 lines
271 B
Text

'use strict';
var implementation = require('./implementation');
module.exports = function getPolyfill() {
if (String.prototype.matchAll) {
try {
''.matchAll(RegExp.prototype);
} catch (e) {
return String.prototype.matchAll;
}
}
return implementation;
};