1'use strict'; 2const common = require('../common'); 3 4common.skipIfInspectorDisabled(); 5 6const fixtures = require('../common/fixtures'); 7const startCLI = require('../common/debugger'); 8 9const assert = require('assert'); 10 11const cli = startCLI(['--port=0', fixtures.path('debugger/break.js')]); 12 13(async () => { 14 await cli.waitForInitialBreak(); 15 await cli.command('watch()'); 16 await cli.waitFor(/ERR_INVALID_ARG_TYPE/); 17 assert.match(cli.output, /TypeError \[ERR_INVALID_ARG_TYPE\]: The "expression" argument must be of type string\. Received undefined/); 18})() 19.finally(() => cli.quit()) 20.then(common.mustCall()); 21