Trivial change: more efficiency in detecting Rhino shell.

git-svn-id: svn://10.0.0.236/trunk@129732 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pschwartau%netscape.com 2002-09-16 18:57:22 +00:00
parent fc68e04aa9
commit 1ff19bd4ab

View File

@ -86,7 +86,9 @@ printStatus(summary);
* "out of memory" is not a catchable error: it cannot be
* trapped with try...catch.
*/
if (inRhino())
var IN_RHINO = inRhino();
if (IN_RHINO)
expectExitCode(1);
else
expectExitCode(3);
@ -96,7 +98,7 @@ else
* Rhino can't seem to handle the largest array: it hangs...
* So we'll skip this case in Rhino -
*/
if (!(inRhino()))
if (!IN_RHINO)
{
var a1=Array(0xFFFFFFFF);
a1.sort();