mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-29 05:34:21 +08:00
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>
async-function 
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
