mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +00:00
Avoid errors in modularized build runs.
This commit is contained in:
23
test/test.js
23
test/test.js
@@ -6500,17 +6500,22 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('should work using its fallback', 3, function() {
|
test('should work using its fallback', 3, function() {
|
||||||
var lodash = _.runInContext(_.assign({}, root, {
|
if (!isModularize) {
|
||||||
'Uint8Array': {
|
var lodash = _.runInContext(_.assign({}, root, {
|
||||||
'toString': function() {
|
'Uint8Array': {
|
||||||
return String(Uint8Array || Array);
|
'toString': function() {
|
||||||
|
return String(Uint8Array || Array);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}));
|
||||||
}));
|
|
||||||
|
|
||||||
strictEqual(lodash.isFunction(slice), true);
|
strictEqual(lodash.isFunction(slice), true);
|
||||||
strictEqual(lodash.isFunction(/x/), false);
|
strictEqual(lodash.isFunction(/x/), false);
|
||||||
strictEqual(lodash.isFunction(Uint8Array), toString.call(Uint8Array) == funcClass);
|
strictEqual(lodash.isFunction(Uint8Array), toString.call(Uint8Array) == funcClass);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
skipTest(3);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should work with host objects in IE 8 document mode (test in IE 11)', 2, function() {
|
test('should work with host objects in IE 8 document mode (test in IE 11)', 2, function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user