|
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';
|
|---|
| 2 | var $ = require('../internals/export');
|
|---|
| 3 | var fromAsync = require('../internals/array-from-async');
|
|---|
| 4 | var fails = require('../internals/fails');
|
|---|
| 5 |
|
|---|
| 6 | // eslint-disable-next-line es/no-array-fromasync -- safe
|
|---|
| 7 | var nativeFromAsync = Array.fromAsync;
|
|---|
| 8 | // https://bugs.webkit.org/show_bug.cgi?id=271703
|
|---|
| 9 | var 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.