[Jslib] problems with Dir from jslib version 0.1.105 on Mozilla 1.5

Con Hennessy con.hennessy at propylon.com
Wed Dec 3 19:22:02 EST 2003


On Wednesday 03 December 2003 19:02, Pete Collins wrote:
> Try:
>
> -   var oireachtas = Dir(  "/tmp/x" );
>
> +  var oireachtas = new Dir(  "/tmp/x" );

Thank you Pete, what a stupid mistake ! 
I wonder is it possible (and worth it) to catch this mistake and report an 
informative error message ?
If so, I will raise a bug report on it.

Again, thank you,
CPH

>
> --pete
>
> > But all I get is :
> > Error: this.initPath is not a function
> > Source File: chrome://jslib/content/io/dir.js Line: 85
> >
> > and the output :
> > chrome://jslib/content/io/dir.js
> > chrome://jslib/content/io/filesystem.js
> > *** load: filesystem.js OK
> > *** load: dir.js OK
> > addyears
> > addyears 2
> > Document chrome://sfi/content/a4.xul loaded successfully
> >
> > I also tried with jslib version 0.1.95 and got the same error message.
> >
> > Any help appreciated,
> > CPH
> >
> > _______________________________________________
> > Jslib mailing list
> > Jslib at mozdev.org
> > http://mozdev.org/mailman/listinfo/jslib



More information about the Jslib mailing list