Avoid test path for non node/phantom.

This commit is contained in:
John-David Dalton
2014-07-07 01:51:48 -07:00
parent e42d091502
commit a71cc552c9

View File

@@ -316,7 +316,7 @@
].join('\n')));
}
catch(e) {
if (typeof require != 'function') {
if (amd || isJava || typeof require != 'function' || !_.isObject(require.cache)) {
return;
}
}