[Jslib] include failure on windows

GJW g459@yahoo.com
Mon, 28 Jan 2002 22:49:09 -0600


started trying to use JSlib yesterday, and already I'm stumped.
in xpcshell, this works:

js> load('chrome/jslib/jslib.js'); 
js> include('chrome://jslib/io/file.js' <chrome://jslib/io/file.js%27>);
js> f=new File('c:\\foo.dat');
js> f.create();

but in xul:

<script type="application/x-javascript" 
src="chrome://jslib/content/jslib.js" <chrome://jslib/content/jslib.js> />
<script type="application/x-javascript">
   include ("chrome://jslib/content/io/file.js" <chrome://jslib/content/io/file.js>);
</script>

fails.  javascript console tells me:
Warning: reference to undefined property e.message
Source File: chrome://jslib/content/jslib.js
Line: 176
Warning: reference to undefined property e.name
Source File: chrome://jslib/content/jslib.js
Line: 179
Error: uncaught exception: Permission denied to create wrapper for object 

Is the problem the empty catch block on line 100 of jslib.js?  I'm clueless.

TIA,
--G






_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com