xref: /third_party/node/test/doctool/test-deprecation-codes.js
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/doctool/
11cb0ef41Sopenharmony_ci'use strict';
21cb0ef41Sopenharmony_ci
31cb0ef41Sopenharmony_cirequire('../common');
41cb0ef41Sopenharmony_ciconst path = require('path');
51cb0ef41Sopenharmony_ciconst { spawn } = require('child_process');
61cb0ef41Sopenharmony_ci
71cb0ef41Sopenharmony_ciconst script = path.join(
81cb0ef41Sopenharmony_ci  __dirname,
91cb0ef41Sopenharmony_ci  '..',
101cb0ef41Sopenharmony_ci  '..',
111cb0ef41Sopenharmony_ci  'tools',
121cb0ef41Sopenharmony_ci  'doc',
131cb0ef41Sopenharmony_ci  'deprecationCodes.mjs',
141cb0ef41Sopenharmony_ci);
151cb0ef41Sopenharmony_ci
161cb0ef41Sopenharmony_ciconst mdPath = path.join(
171cb0ef41Sopenharmony_ci  __dirname,
181cb0ef41Sopenharmony_ci  '..',
191cb0ef41Sopenharmony_ci  '..',
201cb0ef41Sopenharmony_ci  'doc',
211cb0ef41Sopenharmony_ci  'api',
221cb0ef41Sopenharmony_ci  'deprecations.md',
231cb0ef41Sopenharmony_ci);
241cb0ef41Sopenharmony_ci
251cb0ef41Sopenharmony_ciconst cp = spawn(process.execPath, [script, mdPath], { encoding: 'utf-8', stdio: 'inherit' });
261cb0ef41Sopenharmony_ci
271cb0ef41Sopenharmony_cicp.on('error', (err) => { throw err; });
281cb0ef41Sopenharmony_cicp.on('exit', (code) => process.exit(code));
29

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