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
16 lines
421 B
Plaintext
16 lines
421 B
Plaintext
'use strict';
|
|
|
|
var implementation = require('./implementation');
|
|
|
|
module.exports = function getPolyfill() {
|
|
if (typeof Iterator === 'function' && typeof Iterator.prototype.flatMap === 'function') {
|
|
try {
|
|
// https://issues.chromium.org/issues/336839115
|
|
Iterator.prototype.flatMap.call({ next: null }, function () {}).next();
|
|
} catch (e) {
|
|
return Iterator.prototype.flatMap;
|
|
}
|
|
}
|
|
return implementation;
|
|
};
|