зеркало из https://github.com/mozilla/pjs.git
Improving Rhino detection by using the new inRhino() function in the utility file shell.js
This commit is contained in:
Родитель
8343e0fb57
Коммит
9d0d4a659f
|
@ -71,9 +71,7 @@ var expectedvalues = [];
|
||||||
/*
|
/*
|
||||||
* Are we in Rhino or SpiderMonkey?
|
* Are we in Rhino or SpiderMonkey?
|
||||||
*/
|
*/
|
||||||
var java = eval('java');
|
var LENGTH_EXPECTED = inRhino()? LENGTH_RHINO : LENGTH_SPIDERMONKEY;
|
||||||
var inRhino = java? true : false;
|
|
||||||
var LENGTH_EXPECTED = inRhino? LENGTH_RHINO : LENGTH_SPIDERMONKEY;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The various NativeError objects; see ECMA-262 Edition 3, Section 15.11.6
|
* The various NativeError objects; see ECMA-262 Edition 3, Section 15.11.6
|
||||||
|
|
Загрузка…
Ссылка в новой задаче