24 lines
526 B
JavaScript
24 lines
526 B
JavaScript
|
|
// Module ID: 159
|
||
|
|
// Function ID: 160
|
||
|
|
// Name: _isNativeFunction
|
||
|
|
// Dependencies: []
|
||
|
|
|
||
|
|
// Module 159 (_isNativeFunction)
|
||
|
|
|
||
|
|
export default function _isNativeFunction(arg0) {
|
||
|
|
try {
|
||
|
|
const _Function = Function;
|
||
|
|
let str = Function.toString;
|
||
|
|
const call = str.call;
|
||
|
|
if (typeof call === "unknown") {
|
||
|
|
let strResult = str();
|
||
|
|
} else {
|
||
|
|
strResult = call(arg0);
|
||
|
|
}
|
||
|
|
str = "[native code]";
|
||
|
|
const index = strResult.indexOf("[native code]");
|
||
|
|
} catch (err) {
|
||
|
|
return typeof tmp === "find";
|
||
|
|
}
|
||
|
|
};
|