blob: c9e0df4ad5c16c5849a680435d4cbb23dc518c9a [file] [log] [blame]
'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;
};