Improving Rhino detection by using the new inRhino() function in the utility file shell.js

This commit is contained in:
pschwartau%netscape.com 2002-04-10 22:44:14 +00:00
Родитель 23d222431f
Коммит ce07e9f072
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -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