Skip to content
Myr

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 file

Take it

Add `strict` option to `sendMessage()` (#1098)ehmickybefore adoptione085b10

lines 1–9why, one step back
1#!/usr/bin/env node
2import {sendMessage} from '../../index.js';3import {foobarString} from '../helpers/input.js';45try {6 await sendMessage(foobarString, {strict: true});7} catch {8 await sendMessage(foobarString);9}