XmlHttpRequest in rhino

XmlHttpRequest in rhino


It's very nice to play around with the browser environment in rhino. I
started working on a testsuite for jamal, a set of mvc conventions for
javascript apps based on jquery.
But I had an issue with the XmlHttpRequest in the env.js for rhino.
The send method starts a new thread for asynchronous requests, in the
current trunk it is implemented by:
if (this.async)
(new java.lang.Thread({
run: makeRequest
})).start();
else
makeRequest();
But it should be:
if (this.async)
(new java.lang.Thread(
new java.lang.Runnable({
run: makeRequest
}))).start();
else
makeRequest();
Cheers,
Timo