1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-12 02:42:48 +00:00
Files
mywebsite/node_modules/es5-ext/test/function/valid-function.js

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");
};