Files
react-native-devtools-frontend/node_modules/async-function
Nikolay Vitkov c0863472f0 Update node_module packages
Update packages to new versions to keep up with changes.

Submitting directly after passing CQ dry run as the other blocking checks are not correct as that is third_party code.

Bug: none
Change-Id: I64aa8f9137ce2625254013a4637b90bd12fdb568
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6765543
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2025-07-18 04:37:11 -07:00
..
2025-07-18 04:37:11 -07:00
2025-07-18 04:37:11 -07:00
2025-07-18 04:37:11 -07:00
2025-07-18 04:37:11 -07:00
2025-07-18 04:37:11 -07:00
2025-07-18 04:37:11 -07:00
2025-07-18 04:37:11 -07:00
2025-07-18 04:37:11 -07:00
2025-07-18 04:37:11 -07:00
2025-07-18 04:37:11 -07:00
2025-07-18 04:37:11 -07:00
2025-07-18 04:37:11 -07:00
2025-07-18 04:37:11 -07:00
2025-07-18 04:37:11 -07:00
2025-07-18 04:37:11 -07:00

async-function Version Badge

github actions coverage License Downloads

npm badge

A function that returns the normally hidden AsyncFunction constructor, when available.

Getting started

npm install --save async-function

Usage/Examples

const assert = require('assert');
const AsyncFunction = require('async-function')();

const fn = new AsyncFunction('return 1');

assert.equal(fn.toString(), 'async function anonymous(\n) {\nreturn 1\n}');

fn().then(x => {
    assert.equal(x, 1);
});

Tests

Clone the repo, npm install, and run npm test