���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /home/real/node-v13.0.1/test/fixtures/ |
'use strict'; const assert = require('assert'); const m = require('module'); global.mwc = 0; const originalWrapper = m.wrapper; const patchedWrapper = {...m.wrapper}; patchedWrapper[0] += 'global.mwc = (global.mwc || 0 ) + 1'; // Storing original version of wrapper function m.wrapper = patchedWrapper; require('./not-main-module.js'); assert.strictEqual(mwc, 1); // Restoring original wrapper function m.wrapper = originalWrapper; // Cleaning require cache delete require.cache[require.resolve('./not-main-module.js')]; delete global.mwc;