Hi,
I have stumbled across a behavior that doesn't seem correct in the CVS
version of Rhino. It seems that the presence of a destructuring
assignment in a let-block causes the other variables to lose their
bindings.
$ java -cp js.jar org.mozilla.javascript.tools.shell.Main -version 170
Rhino 1.7 release 1 2008 01 28
js> let(a = 1, [b,c] = [2,3], d = 4) { [a,b,c,d] }
,2,3,
js>
As I am new to the Rhino codebase I'm expecting it will take me a
little while to generate a patch for this, so if someone else also
wanted to take a look at it that would probably be helpful. I suppose
it's also possible that I simply misunderstand the specified behavior
and that there actually isn't a problem.
Cheers,
Ben Reesman
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino