source: frontend/node_modules/core-js-pure/modules/es.array.from-async.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 684 bytes
Line 
1'use strict';
2var $ = require('../internals/export');
3var fromAsync = require('../internals/array-from-async');
4var fails = require('../internals/fails');
5
6// eslint-disable-next-line es/no-array-fromasync -- safe
7var nativeFromAsync = Array.fromAsync;
8// https://bugs.webkit.org/show_bug.cgi?id=271703
9var INCORRECT_CONSTRUCTURING = !nativeFromAsync || fails(function () {
10 var counter = 0;
11 nativeFromAsync.call(function () {
12 counter++;
13 return [];
14 }, { length: 0 });
15 return counter !== 1;
16});
17
18// `Array.fromAsync` method
19// https://tc39.es/ecma262/#sec-array.fromasync
20$({ target: 'Array', stat: true, forced: INCORRECT_CONSTRUCTURING }, {
21 fromAsync: fromAsync
22});
Note: See TracBrowser for help on using the repository browser.