Hi,

in HtmlUnit I need to simulate Firefox results for following
(document.all being a custom host object):

document.all ? true : false // -> false
Boolean(document.all) // -> true

It seems to me that I can't do that with current Rhino state: Rhino
handles boolean conversion the same way in both above cases, and unless
language version is set < 1.3, getDefaultValue is not called on the object.

Is this correct? Is there an other way to handle this?

Cheers,
Marc.
-- 
Blog: http://mguillem.wordpress.com
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to