UNPKG

558 BJavaScriptView Raw
1// Generated by LiveScript 1.5.0
2var onmessage, this$ = this;
3function addEventListener(event, cb){
4 return this.thread.on(event, cb);
5}
6function close(){
7 return this.thread.emit('close');
8}
9function importScripts(){
10 var i$, len$, p, results$ = [];
11 for (i$ = 0, len$ = (arguments).length; i$ < len$; ++i$) {
12 p = (arguments)[i$];
13 results$.push(self.eval(native_fs_.readFileSync(p, 'utf8')));
14 }
15 return results$;
16}
17onmessage = null;
18thread.on('message', function(args){
19 return typeof onmessage == 'function' ? onmessage(args) : void 8;
20});