no-await.js
This file
Path
test/fixtures/no-await.js
9 lines · 341 bytes · JavaScript
Last changed by
Not known.
History of this fileTake it
12345678910#!/usr/bin/env nodeimport process from 'node:process';import {once} from 'node:events';import {execa} from '../../index.js';
const [options, file, ...commandArguments] = process.argv.slice(2);execa(file, commandArguments, JSON.parse(options));const [error] = await once(process, 'unhandledRejection');console.log(error.shortMessage);