Skip to content
Myr

nested.js

This file

Path

test/fixtures/nested.js

11 lines · 312 bytes · JavaScript

Last changed by

Upgrade xo (#980)ehmickybefore adoptionccfa412

History of this file

Take it

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

Fix calling `.kill()` many times (#768)ehmickybefore adoptiondb95b51

lines 1–4why, one step back
1#!/usr/bin/env node
2import process from 'node:process';3import {execa} from '../../index.js';4

Upgrade xo (#980)ehmickybefore adoptionccfa412

line 5why, one step back
5const [options, file, ...commandArguments] = process.argv.slice(2);

Add tests for `node:worker_threads` (#964)ehmickybefore adoptiona1cd3cf

line 6why, one step back
6try {

Upgrade xo (#980)ehmickybefore adoptionccfa412

line 7why, one step back
7 const result = await execa(file, commandArguments, JSON.parse(options));

Add tests for `node:worker_threads` (#964)ehmickybefore adoptiona1cd3cf

lines 8–11why, one step back
8 process.send({result});
9} catch (error) {10 process.send({error});11}