UNPKG

sjcl-es

Version:

Tiny 2.72kB AES-GCM library

22 lines (18 loc) 415 B
import fs from 'fs'; import vm from 'vm'; var load = function(path) { try { vm.runInThisContext(fs.readFileSync(path)); } catch (e) { console.log(path); throw e; } }; // Assume we're run using `make test`. // That means argv[0] is `node` and argv[1] is this file. process.argv.slice(2).map(load); sjcl.test.run(undefined, function(){ if(!browserUtil.allPassed) { process.exit(1); } });