This commit is contained in:
tiennm99 committed 2020-03-02 14:53:23 +07:00
1 parent b5c881f56f
commit 6ba2247509
4280 files changed
+484929

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
"use strict";
module.exports = function (t, a) {
var f = function () {};
a(t(f), f, "Function");
// eslint-disable-next-line no-new-func
f = new Function();
a(t(f), f, "Function");
a.throws(function () { t({}); }, "Object");
a.throws(function () { t(/re/); }, "RegExp");
a.throws(function () {
t({ call: function () { return 20; } });
}, "Plain object");
};