W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2011

[Bug 13255] New: 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

From: <bugzilla@jessica.w3.org>
Date: Thu, 14 Jul 2011 17:11:57 +0000
To: public-webapps@w3.org
Message-ID: <bug-13255-2927@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=13255

           Summary: 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
           Product: WebAppsWG
           Version: unspecified
          Platform: Other
               URL: http://www.whatwg.org/specs/web-apps/current-work/#top
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Web Workers (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: contributor@whatwg.org
         QAContact: member-webapi-cvs@w3.org
                CC: mike@w3.org, public-webapps@w3.org


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

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Thursday, 14 July 2011 17:12:02 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:46 GMT