title: Cannot create web worker from string in Internet Explorer 11
body: <p>Cannot create inline web workers using BLOB-URL in IE11. 
  Works fine in Edge, Firefox, Chrome. (All browsers are up-to-date.)</p>
  
  <p>For example below JavaScript code fails to create web worker.</p>
  
  <pre><code>try{
   var blob = new Blob(["(" + function1.toString() + ")(" + parametersJSON + ")"], {type: 'application/javascript'}); 
   var x = window.URL.createObjectURL(blob); 
   var worker = new Worker(x);
  } catch(err){
   console.log(err);// displays "invalid function" in IE11.
  }
  </code></pre>
  
  <p>Any help?</p>
  
  <p>Is there any other alternative? to achieve the goal of creating a web worker from a string without using the external file? (Should work in InternetExplorer 11+)</p>
  
  <p>Full code is as follows:</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;Web Worker Test&lt;/title&gt;
          &lt;script&gt;
  
              function function1(parametersJSON){
  
                  console.log(parametersJSON.testKey1);
              }
              try{
                  var parametersJSON = {'testKey1':'foo','testKey2':'bar'};
                  var parametersJSONString = JSON.stringify(parametersJSON);
                  var blob = new Blob(["(" + function1.toString() + ")(" + parametersJSONString + ")"], {type: 'application/javascript'}); 
                  var x = window.URL.createObjectURL(blob); 
                  var worker = new Worker(x);
              } catch(err){
                  console.log(err);// displays "invalid function" in IE11.
              }
          &lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
          Test
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>