Files: d456a6cc8589489e558e6164750474ed2cfc961e / 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