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