Skip to content
Myr

no-await.js

This file

Path

test/fixtures/no-await.js

9 lines · 341 bytes · JavaScript

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than 9f65b86 point at it.

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 1–9why, one step back
1#!/usr/bin/env node
2import process from 'node:process';3import {once} from 'node:events';4import {execa} from '../../index.js';56const [options, file, ...commandArguments] = process.argv.slice(2);7execa(file, commandArguments, JSON.parse(options));8const [error] = await once(process, 'unhandledRejection');9console.log(error.shortMessage);