ipc-send-strict-catch.js
This file
Path
test/fixtures/ipc-send-strict-catch.js
9 lines · 217 bytes · JavaScript
Last changed by
Add `strict` option to `sendMessage()` (#1098)ehmickybefore adoptione085b10
History of this fileTake it
12345678910#!/usr/bin/env nodeimport {sendMessage} from '../../index.js';import {foobarString} from '../helpers/input.js';
try { await sendMessage(foobarString, {strict: true});} catch { await sendMessage(foobarString);}