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
Родитель 8343e0fb57
Коммит 9d0d4a659f
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