Files: efcf9fd06b02fa9bcd28681b4c777224e19702bb / test / test-79-npm / callsites / callsites.js
268 bytesRaw
1 | ; |
2 | |
3 | var path = require('path'); |
4 | var callsites = require('callsites'); |
5 | var fns = callsites().map(function (c) { |
6 | return c.getFileName(); |
7 | }); |
8 | if (fns[1] === 'pkg/prelude/bootstrap.js' || |
9 | path.basename(fns[0]) === 'callsites.js') { |
10 | console.log('ok'); |
11 | } |
12 |
Built with git-ssb-web