Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-esm-encoded-path-native.js « es-module « test - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b8f5719b6089ee39b7ee601d91bf008308915aff (plain)
1
2
3
4
5
6
7
8
9
10
11
'use strict';
require('../common');
const fixtures = require('../common/fixtures');
const assert = require('assert');
const { spawn } = require('child_process');

const native = fixtures.path('es-module-url/native.mjs');
const child = spawn(process.execPath, [native]);
child.on('exit', (code) => {
  assert.strictEqual(code, 1);
});