mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-12 18:52:50 +00:00
18 lines
335 B
JavaScript
18 lines
335 B
JavaScript
'use strict';
|
|
|
|
module.exports = function (t, a) {
|
|
var f = function () {};
|
|
a(t(f), f, "Function");
|
|
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");
|
|
};
|