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