I states here, http://www.nusphere.com/kb/jscoreguide/lc.html#1037125,
Core JavaScript Guide
Chapter 9 LiveConnect Overview
Data Type Conversions
JavaScript to Java Conversions
Number Values
When you pass JavaScript number types as parameters to Java methods,
Java converts the values according to the rules described in the
following table:
Java parameter type Conversion rules
boolean 0 and NaN values are converted to
false.
Other values are converted to
true.
so what is the correct behavior?
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino