Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
15 lines
271 B
Plaintext
15 lines
271 B
Plaintext
'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;
|
|
};
|