xref: /third_party/node/test/fixtures/cjs-module-wrap.js (revision 1cb0ef41)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/fixtures/
11cb0ef41Sopenharmony_ci'use strict';
21cb0ef41Sopenharmony_ciconst assert = require('assert');
31cb0ef41Sopenharmony_ciconst m = require('module');
41cb0ef41Sopenharmony_ci
51cb0ef41Sopenharmony_ciglobal.mwc = 0;
61cb0ef41Sopenharmony_cim.wrapper[0] += 'global.mwc = (global.mwc || 0 ) + 1;';
71cb0ef41Sopenharmony_ci
81cb0ef41Sopenharmony_cirequire('./not-main-module.js');
91cb0ef41Sopenharmony_ciassert.strictEqual(mwc, 1);
101cb0ef41Sopenharmony_cidelete global.mwc;
11

Indexes created Thu Nov 07 10:32:03 CST 2024