mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
Fix test/test.js in lodash-node and carry fixes over to perf/perf.js.
This commit is contained in:
@@ -49,7 +49,11 @@
|
||||
|
||||
if (!amd) {
|
||||
try {
|
||||
return require.resolve(result);
|
||||
result = require('fs').realpathSync(result);
|
||||
} catch(e) { }
|
||||
|
||||
try {
|
||||
result = require.resolve(result);
|
||||
} catch(e) { }
|
||||
}
|
||||
return result;
|
||||
@@ -65,7 +69,7 @@
|
||||
/** The basename of the Lo-Dash file to test */
|
||||
var basename = /[\w.-]+$/.exec(filePath)[0];
|
||||
|
||||
/** Detect if running in Java */
|
||||
/** Detect if in a Java environment */
|
||||
var isJava = !document && !!root.java;
|
||||
|
||||
/** Used to indicate testing a modularized build */
|
||||
|
||||
Reference in New Issue
Block a user