GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — node/test/es-module/test-esm-preserve-symlinks.js at master · ferventcoder/node Expand file tree/ Copy pathtest-esm-preserve-symlinks.jsMore file actions 38 lines (32 loc) · 968 Bytes / Copy pathtest-esm-preserve-symlinks.jsFile metadata and controls38 lines (32 loc) · 968 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 'use strict'; const common = require('../common'); const { spawn } = require('child_process'); const assert = require('assert'); const path = require('path'); const fs = require('fs'); const tmpdir = require('../common/tmpdir'); tmpdir.refresh(); const tmpDir = tmpdir.path; const entry = path.join(tmpDir, 'entry.js'); const real = path.join(tmpDir, 'real.js'); const link_absolute_path = path.join(tmpDir, 'link.js'); fs.writeFileSync(entry, ` const assert = require('assert'); global.x = 0; require('./real.js'); assert.strictEqual(x, 1); require('./link.js'); assert.strictEqual(x, 2); `); fs.writeFileSync(real, 'x++;'); try { fs.symlinkSync(real, link_absolute_path); } catch (err) { if (err.code !== 'EPERM') throw err; common.skip('insufficient privileges for symlinks'); } spawn(process.execPath, ['--experimental-modules', '--preserve-symlinks', entry], { stdio: 'inherit' }).on('exit', (code) => { assert.strictEqual(code, 0); }); |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |