git ssb

0+

cel-desktop / ssb-pkg



Tree: 65191f9a9664f013ebe726bb95a1a54b086e1bd5

Files: 65191f9a9664f013ebe726bb95a1a54b086e1bd5 / test / test-50-require-main-parent / test-x-index.js

1664 bytesRaw
1/* eslint-disable no-nested-ternary */
2
3'use strict';
4
5var fs = require('fs');
6
7console.log([
8 typeof process.argv[0],
9 typeof process.argv[1],
10 process.platform === 'win32' ? fs.existsSync(process.argv[0]) : 'empty',
11 fs.existsSync(process.argv[1]), // argv[0] is just "node" in linux
12 __dirname,
13 __filename,
14 typeof module.filename,
15 module.filename ? module.filename : 'empty',
16 typeof module.parent,
17 module.parent ? (typeof module.parent.filename) : 'empty',
18 module.parent ? (module.parent.filename ? module.parent.filename : 'empty') : 'empty',
19 typeof module.require,
20 typeof global,
21 // в nodejs они разные // (module.require === require).toString(),
22 typeof require.main,
23 (require.main === module).toString(),
24 typeof require.main.parent,
25 (require.main.parent || 'null').toString(),
26 require.main.parent ? require.main.parent.id : 'empty',
27 require.main.parent ? require.main.parent.filename : 'empty',
28 typeof require.cache,
29 typeof global,
30 typeof global.setTimeout,
31 global.module ? (global.module === module).toString() : 'true',
32 global.require ? (global.require === require).toString() : 'true'
33]/**/.concat(
34 require('./test-y-require-A.js')
35).concat(
36 require('./test-y-require-A.js')
37).concat(
38 require('../test-50-require-main-parent/test-y-require-B.js')
39).concat(
40 require('../test-50-require-main-parent/test-y-require-B.js')
41).concat(
42 require('./sub/test-y-require-C.js')
43).concat(
44 require('./sub/test-y-require-C.js')
45).concat(
46 require('../test-50-require-main-parent/sub/test-y-require-D.js')
47).concat(
48 require('../test-50-require-main-parent/sub/test-y-require-D.js')
49)/**/.join('\n'));
50

Built with git-ssb-web