11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_ciconst common = require('../common'); 31cb0ef41Sopenharmony_ci 41cb0ef41Sopenharmony_cicommon.skipIfInspectorDisabled(); 51cb0ef41Sopenharmony_ci 61cb0ef41Sopenharmony_ciconst fixtures = require('../common/fixtures'); 71cb0ef41Sopenharmony_ciconst startCLI = require('../common/debugger'); 81cb0ef41Sopenharmony_ci 91cb0ef41Sopenharmony_ciconst assert = require('assert'); 101cb0ef41Sopenharmony_ci 111cb0ef41Sopenharmony_ciconst cli = startCLI(['--port=0', fixtures.path('debugger/break.js')]); 121cb0ef41Sopenharmony_ci 131cb0ef41Sopenharmony_ci(async () => { 141cb0ef41Sopenharmony_ci await cli.waitForInitialBreak(); 151cb0ef41Sopenharmony_ci await cli.command('watch()'); 161cb0ef41Sopenharmony_ci await cli.waitFor(/ERR_INVALID_ARG_TYPE/); 171cb0ef41Sopenharmony_ci assert.match(cli.output, /TypeError \[ERR_INVALID_ARG_TYPE\]: The "expression" argument must be of type string\. Received undefined/); 181cb0ef41Sopenharmony_ci})() 191cb0ef41Sopenharmony_ci.finally(() => cli.quit()) 201cb0ef41Sopenharmony_ci.then(common.mustCall()); 21