%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
'use strict'; const common = require('../common'); const tmpdir = require('../common/tmpdir'); const assert = require('assert'); // Attempts to test that the source map JS code run on process shutdown // does not call any user-defined JS code. const { Worker, workerData, parentPort } = require('worker_threads'); if (!workerData) { tmpdir.refresh(); process.env.NODE_V8_COVERAGE = tmpdir.path; // Count the number of some calls that should not be made. const callCount = new Int32Array(new SharedArrayBuffer(4)); const w = new Worker(__filename, { workerData: { callCount } }); w.on('message', common.mustCall(() => w.terminate())); w.on('exit', common.mustCall(() => { assert.strictEqual(callCount[0], 0); })); return; } const { callCount } = workerData; function increaseCallCount() { callCount[0]++; } // Increase the call count when a forbidden method is called. for (const property of ['_cache', 'lineLengths', 'url']) { Object.defineProperty(Object.prototype, property, { get: increaseCallCount, set: increaseCallCount }); } Object.getPrototypeOf([][Symbol.iterator]()).next = increaseCallCount; Object.getPrototypeOf((new Map()).entries()).next = increaseCallCount; Array.prototype[Symbol.iterator] = increaseCallCount; Map.prototype[Symbol.iterator] = increaseCallCount; Map.prototype.entries = increaseCallCount; Object.keys = increaseCallCount; Object.create = increaseCallCount; Object.hasOwnProperty = increaseCallCount; parentPort.postMessage('done');