Update vendors.

Former-commit-id: 25cce48fee2dfb010eb6a9c2e4235890f20b19aa
This commit is contained in:
John-David Dalton
2013-02-21 08:40:09 -08:00
parent f6e724c4c5
commit 71a207079f
2 changed files with 73 additions and 46 deletions

View File

@@ -25,6 +25,9 @@
/** Detect Java environment */
var java = /Java/.test(getClassOf(window.java)) && window.java;
/** Detect Rhino */
var rhino = java && getClassOf(window.environment) == 'Environment';
/** A character to represent alpha */
var alpha = java ? 'a' : '\u03b1';
@@ -597,7 +600,7 @@
arch = data.getProperty('os.arch');
os = os || data.getProperty('os.name') + ' ' + data.getProperty('os.version');
}
if (typeof exports == 'object' && exports) {
if (freeExports) {
// if `thisBinding` is the [ModuleScope]
if (thisBinding == oldWin && typeof system == 'object' && (data = [system])[0]) {
os || (os = data[0].os || null);
@@ -610,13 +613,18 @@
name = 'Narwhal';
}
}
} else if (typeof process == 'object' && (data = process)) {
}
else if (typeof process == 'object' && (data = process)) {
name = 'Node.js';
arch = data.arch;
os = data.platform;
version = /[\d.]+/.exec(data.version)[0];
}
} else if (getClassOf(window.environment) == 'Environment') {
else if (rhino) {
name = 'Rhino';
}
}
else if (rhino) {
name = 'Rhino';
}
}