This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 13255 - When I use importScripts in my worker to load a separate "library" file, it works, but I get the error: ReferenceError: Can't find variable: importScripts (Safari) Uncaught ReferenceError: importScripts is not defined So it's throwing an error, but that
Summary: When I use importScripts in my worker to load a separate "library" file, it w...
Status: RESOLVED INVALID
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: Web Workers (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: public-webapps-bugzilla
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-14 17:11 UTC by contributor
Modified: 2011-08-08 20:11 UTC (History)
4 users (show)

See Also:


Attachments

Description contributor 2011-07-14 17:11:57 UTC
Specification: http://dev.w3.org/html5/workers/
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:
When I use importScripts in my worker to load a separate "library" file, it
works, but I get the error: 

ReferenceError: Can't find variable: importScripts (Safari)
Uncaught ReferenceError: importScripts is not defined

So it's throwing an error, but that error clearly isn't fatal, and
importScripts *is* working. Can you elaborate on what this error might be, and
how to prevent it, or is it a bug in the way that Chrome and Safari have
implemented it?

Posted from: 174.21.143.105
User agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_8; en-us) AppleWebKit/533.21.1 (KHTML, like Gecko) Version/5.0.5 Safari/533.21.1
Comment 1 Travis Leithead [MSFT] 2011-07-26 17:58:12 UTC
I don't believe this is a spec bug.

ReferenceError is a JavaScript error, not a DOM error. It probably means the URL you provided had a problem.

Recommend resolving this bug.
Comment 2 Ian 'Hixie' Hickson 2011-08-08 20:11:18 UTC
Can't do much without a test case showing the problem.