mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 15:57:48 +00:00
Fix test.js for browsers.
Former-commit-id: e334ab595fa78a59b8371b755ce8dc54706a6630
This commit is contained in:
10
test/test.js
10
test/test.js
@@ -1,12 +1,6 @@
|
||||
;(function(window, undefined) {
|
||||
'use strict';
|
||||
|
||||
/** Detect free variable `global` and use it as `window` */
|
||||
var freeGlobal = typeof global == 'object' && global;
|
||||
if (freeGlobal.global === freeGlobal) {
|
||||
window = freeGlobal;
|
||||
}
|
||||
|
||||
/** Use a single load function */
|
||||
var load = typeof require == 'function' ? require : window.load;
|
||||
|
||||
@@ -15,7 +9,7 @@
|
||||
var min = 0;
|
||||
var result = window.system
|
||||
? (min = 1, system.args)
|
||||
: (window.process ? (min = 2, process.argv) : window.arguments);
|
||||
: (window.process ? (min = 2, process.argv) : (window.arguments || []));
|
||||
|
||||
result = result.length > min
|
||||
? result[result.length - 1]
|
||||
@@ -2709,4 +2703,4 @@
|
||||
if (!window.document) {
|
||||
QUnit.start();
|
||||
}
|
||||
}(this));
|
||||
}(typeof global == 'object' && global || this));
|
||||
|
||||
Reference in New Issue
Block a user