Add _.isFunction test for the Proxy constructor.

This commit is contained in:
John-David Dalton
2016-10-01 23:34:45 -07:00
parent 01c0950ae8
commit 492caa4fd2

View File

@@ -63,8 +63,9 @@
var ArrayBuffer = root.ArrayBuffer,
Buffer = root.Buffer,
Promise = root.Promise,
Map = root.Map,
Promise = root.Promise,
Proxy = root.Proxy,
Set = root.Set,
Symbol = root.Symbol,
Uint8Array = root.Uint8Array,
@@ -10522,6 +10523,17 @@
assert.strictEqual(_.isFunction(generator), typeof generator == 'function');
});
QUnit.test('should return `true` for the `Proxy` constructor', function(assert) {
assert.expect(1);
if (Proxy) {
assert.strictEqual(_.isFunction(Proxy), true);
}
else {
skipAssert(assert);
}
});
QUnit.test('should return `true` for array view constructors', function(assert) {
assert.expect(1);