%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
// Flags: --require ./test/fixtures/overwrite-config-preload-module.js 'use strict'; // This test ensures that overwriting a process configuration // value does not affect code in lib/internal/bootstrap/node.js. // Specifically this tests // that the inspector console functions are bound even though // overwrite-config-preload-module.js overwrote the process.config variable. // We cannot do a check for the inspector because the configuration variables // were reset/removed by overwrite-config-preload-module.js. /* eslint-disable node-core/inspector-check */ const common = require('../common'); const assert = require('assert'); if (!common.isMainThread) common.skip('--require does not work with Workers'); const inspector = require('inspector'); const msg = 'Test inspector logging'; let asserted = false; async function testConsoleLog() { const session = new inspector.Session(); session.connect(); session.on('inspectorNotification', (data) => { if (data.method === 'Runtime.consoleAPICalled') { assert.strictEqual(data.params.args.length, 1); assert.strictEqual(data.params.args[0].value, msg); asserted = true; } }); session.post('Runtime.enable'); console.log(msg); session.disconnect(); } async function runTests() { await testConsoleLog(); assert.ok(asserted, 'log statement did not reach the inspector'); } runTests().then(common.mustCall());