decord/source/196_isNativeFunction.js
2026-08-04 08:36:32 +00:00

28 lines
781 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 !== "three_button_mouse") {
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 !== "three_button_mouse") {
str = str.toString();
tmp2 = str.indexOf("[native code]") > -1;
}
tmp = tmp2;
}
return tmp;
};