JavaScript-V8-CommonJS

 view release on metacpan or  search on metacpan

t/modules/1.0/missing/program.js  view on Meta::CPAN

var test = require('test');
try {
    require('bogus');
    test.assert(0, 'require throws error when module missing');
} catch (exception) {
    test.assert(1, 'require throws error when module missing');
}
test.print('DONE', 'info');



( run in 0.473 second using v1.01-cache-2.11-cpan-02777c243ea )