Files: 65191f9a9664f013ebe726bb95a1a54b086e1bd5 / test / test-50-require-main-parent / sub / test-y-require-D.js
912 bytesRaw
1 | /* eslint-disable no-nested-ternary */ |
2 | |
3 | 'use strict'; |
4 | |
5 | module.exports = [ |
6 | __dirname, |
7 | __filename, |
8 | typeof module.filename, |
9 | module.filename ? module.filename : 'empty', |
10 | typeof module.parent, |
11 | module.parent ? (typeof module.parent.filename) : 'empty', |
12 | module.parent ? (module.parent.filename ? module.parent.filename : 'empty') : 'empty', |
13 | typeof module.require, |
14 | typeof global, |
15 | // в nodejs они разные // (module.require === require).toString(), |
16 | typeof require.main, |
17 | (require.main === module).toString(), |
18 | typeof require.main.parent, |
19 | (require.main.parent || 'null').toString(), |
20 | require.main.parent ? require.main.parent.id : 'empty', |
21 | require.main.parent ? require.main.parent.filename : 'empty', |
22 | typeof global, |
23 | typeof global.setTimeout, |
24 | global.module ? (global.module === module).toString() : 'true', |
25 | global.require ? (global.require === require).toString() : 'true' |
26 | ]; |
27 |
Built with git-ssb-web