зеркало из https://github.com/mozilla/gecko-dev.git
Improving Rhino detection by using the new inRhino() function in the utility file shell.js
This commit is contained in:
Родитель
23d222431f
Коммит
ce07e9f072
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче