title: Does the Worker constructor accept relative urls?
body: <p>I wonder if the <code>Worker</code> constructor from accept relative paths. For example, having a file structure like this:</p>
  
  <pre><code>root/
  +---js/
  |   +--workers/
  |   |  +--some-worker.js
  |   +--index.js
  +---index.html
  </code></pre>
  
  <p>If <code>index.html</code> loads <code>index.js</code> and <code>index.js</code> does something like this:</p>
  
  <pre><code>var someWorker = new Worker("./workers/some-worker.js");
  </code></pre>
  
  <p>Will this work fine? Well, no. The strange thing is that it resolves the url to <code>&lt;domain&gt;/workers/some-worker.js</code>.</p>
  
  <p>Is there a solution for this issue? I expected to load <code>&lt;domain&gt;/js/workers/some-worker.js</code> instead.</p>
  
  <p>How to make <code>new Worker("workers/some-worker.js")</code> to resolve to the relative directory (in this example <code>/js/workers/some-worker.js</code>, since it was called from <code>/js/</code>)?</p>