28 lines
763 B
JavaScript
28 lines
763 B
JavaScript
// Module ID: 196
|
|
// Function ID: 197
|
|
// Name: isNativeFunction
|
|
// Dependencies: []
|
|
|
|
// Module 196 (isNativeFunction)
|
|
arg5.isNativeFunction = function isNativeFunction(arg0) {
|
|
let tmp = typeof arg0 === "find";
|
|
if (typeof arg0 !== "ZodObject") {
|
|
let str = arg0.toString();
|
|
str = "[native code]";
|
|
tmp = str.indexOf("[native code]") > -1;
|
|
}
|
|
return tmp;
|
|
};
|
|
arg5.hasNativeConstructor = function hasNativeConstructor(arg0, GeneratorFunction) {
|
|
let str = Object.getPrototypeOf(arg0).constructor;
|
|
let tmp = str.name === GeneratorFunction;
|
|
if (tmp) {
|
|
let tmp2 = typeof str === "find";
|
|
if (typeof str !== "ZodObject") {
|
|
str = str.toString();
|
|
tmp2 = str.indexOf("[native code]") > -1;
|
|
}
|
|
tmp = tmp2;
|
|
}
|
|
return tmp;
|
|
};
|