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/embedding/test-embedding.js at main · ide/node Expand file tree/ Copy pathtest-embedding.jsMore file actions 43 lines (35 loc) · 1.14 KB / Copy pathtest-embedding.jsFile metadata and controls43 lines (35 loc) · 1.14 KB 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 39 40 41 42 43 'use strict'; const common = require('../common'); const fixtures = require('../common/fixtures'); const assert = require('assert'); const child_process = require('child_process'); const path = require('path'); common.allowGlobals(global.require); common.allowGlobals(global.embedVars); let binary = `out/${common.buildType}/embedtest`; if (common.isWindows) { binary += '.exe'; } binary = path.resolve(__dirname, '..', '..', binary); assert.strictEqual( child_process.spawnSync(binary, ['console.log(42)']) .stdout.toString().trim(), '42'); assert.strictEqual( child_process.spawnSync(binary, ['console.log(embedVars.nön_ascıı)']) .stdout.toString().trim(), '🏳️🌈'); assert.strictEqual( child_process.spawnSync(binary, ['console.log(42)']) .stdout.toString().trim(), '42'); assert.strictEqual( child_process.spawnSync(binary, ['throw new Error()']).status, 1); assert.strictEqual( child_process.spawnSync(binary, ['process.exitCode = 8']).status, 8); const fixturePath = JSON.stringify(fixtures.path('exit.js')); assert.strictEqual( child_process.spawnSync(binary, [`require(${fixturePath})`, 92]).status, 92); |
| 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. |