All files / tests worker.js

100% Statements 8/8
75% Branches 3/4
100% Functions 1/1
100% Lines 8/8
1 2 3 4 5 6 7 8 9 10 11 12 131x 1x 6x 3x 3x 3x     3x 3x      
var imported = false;
onmessage = function(e) {
  if (imported) {
    postMessage(sha512(e.data));
    Eif (typeof exports !== 'undefined') {
      imported = false;
    }
  } else {
    imported = true;
    importScripts(e.data);
  }
}