js/src/tests/js1_8_5/extensions/browser.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/tests/js1_8_5/extensions/browser.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,6 @@
     1.4 +// The page loaded in the browser is jsreftest.html, which is located in
     1.5 +// js/src/tests. That makes Worker script URLs resolve relative to the wrong
     1.6 +// directory. workerDir is the workaround.
     1.7 +workerDir = (document.location.href.replace(/\/[^/?]*(\?.*)?$/, '/') +
     1.8 +             'js1_8_5/extensions/');
     1.9 +

mercurial