xref: /third_party/node/test/fixtures/watch-mode/ipc.js
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/fixtures/watch-mode/
11cb0ef41Sopenharmony_ciconst path = require('node:path');
21cb0ef41Sopenharmony_ciconst url = require('node:url');
31cb0ef41Sopenharmony_ciconst fs = require('node:fs');
41cb0ef41Sopenharmony_ciconst tmpdir = require('../../common/tmpdir');
51cb0ef41Sopenharmony_ci
61cb0ef41Sopenharmony_ciconst tmpfile = path.join(tmpdir.path, 'file');
71cb0ef41Sopenharmony_cifs.writeFileSync(tmpfile, '');
81cb0ef41Sopenharmony_ci
91cb0ef41Sopenharmony_ciprocess.send({ 'watch:require': [path.resolve(__filename)] });
101cb0ef41Sopenharmony_ciprocess.send({ 'watch:import': [url.pathToFileURL(path.resolve(__filename)).toString()] });
111cb0ef41Sopenharmony_ciprocess.send({ 'watch:import': [url.pathToFileURL(tmpfile).toString()] });
121cb0ef41Sopenharmony_ciprocess.send({ 'watch:import': [new URL('http://invalid.com').toString()] });
13

Indexes created Thu Nov 07 10:32:03 CST 2024