From 9d0d4a659ff79088ae14982fe5f7a045875ae83b Mon Sep 17 00:00:00 2001 From: "pschwartau%netscape.com" Date: Wed, 10 Apr 2002 22:44:14 +0000 Subject: [PATCH] Improving Rhino detection by using the new inRhino() function in the utility file shell.js --- js/tests/js1_5/Exceptions/regress-123002.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/tests/js1_5/Exceptions/regress-123002.js b/js/tests/js1_5/Exceptions/regress-123002.js index 749fd9a1488..338d1d10ad2 100644 --- a/js/tests/js1_5/Exceptions/regress-123002.js +++ b/js/tests/js1_5/Exceptions/regress-123002.js @@ -71,9 +71,7 @@ var expectedvalues = []; /* * Are we in Rhino or SpiderMonkey? */ -var java = eval('java'); -var inRhino = java? true : false; -var LENGTH_EXPECTED = inRhino? LENGTH_RHINO : LENGTH_SPIDERMONKEY; +var LENGTH_EXPECTED = inRhino()? LENGTH_RHINO : LENGTH_SPIDERMONKEY; /* * The various NativeError objects; see ECMA-262 Edition 3, Section 15.11.6