diff options
author | Ujjwal Sharma <usharma1998@gmail.com> | 2018-11-07 22:17:09 +0530 |
---|---|---|
committer | Ujjwal Sharma <usharma1998@gmail.com> | 2019-02-19 20:58:37 +0530 |
commit | 5f8ccecaa2e44c4a04db95ccd278a7078c14dd77 (patch) | |
tree | e56a5d9bff97dc73c5898f637d19e78627762529 /test/parallel/test-module-wrap.js | |
parent | d345b0dc128d99afc8476f58ed5546b43d52d30a (diff) | |
download | android-node-v8-5f8ccecaa2e44c4a04db95ccd278a7078c14dd77.tar.gz android-node-v8-5f8ccecaa2e44c4a04db95ccd278a7078c14dd77.tar.bz2 android-node-v8-5f8ccecaa2e44c4a04db95ccd278a7078c14dd77.zip |
module: revert module._compile to original state if module is patched
PR-URL: https://github.com/nodejs/node/pull/21573
Fixes: https://github.com/nodejs/node/issues/17396
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'test/parallel/test-module-wrap.js')
-rw-r--r-- | test/parallel/test-module-wrap.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/parallel/test-module-wrap.js b/test/parallel/test-module-wrap.js new file mode 100644 index 0000000000..639300cb6a --- /dev/null +++ b/test/parallel/test-module-wrap.js @@ -0,0 +1,9 @@ +'use strict'; +require('../common'); +const fixtures = require('../common/fixtures'); +const { execFileSync } = require('child_process'); + +const cjsModuleWrapTest = fixtures.path('cjs-module-wrap.js'); +const node = process.argv[0]; + +execFileSync(node, [cjsModuleWrapTest], { stdio: 'pipe' }); |