Update compiled bundle

This commit is contained in:
pengfei.zhou 2021-11-05 16:32:43 +08:00 committed by osborn
parent 7282146e14
commit 00178196bf
2 changed files with 4 additions and 4 deletions

View File

@ -107,7 +107,7 @@ function __injectGlobalFunction(name) {
});
}
function __invokeMethod(objectName, functionName, stringifiedArgs) {
NativeClient.log(`invoke:${objectName}.${functionName}(${stringifiedArgs})`);
// NativeClient.log(`invoke:${objectName}.${functionName}(${stringifiedArgs})`)
try {
const thisObject = Reflect.get(window, objectName);
const thisFunction = Reflect.get(thisObject, functionName);
@ -115,7 +115,7 @@ function __invokeMethod(objectName, functionName, stringifiedArgs) {
const rawArgs = args.map(e => _rawValue(e));
const ret = Reflect.apply(thisFunction, thisObject, rawArgs);
const returnVal = ret ? JSON.stringify(_wrappedValue(ret)) : "";
NativeClient.log(`return:${returnVal}`);
// NativeClient.log(`return:${returnVal}`)
NativeClient.returnNative(returnVal);
}
catch (e) {

View File

@ -105,7 +105,7 @@ function __injectGlobalFunction(name) {
});
}
function __invokeMethod(objectName, functionName, stringifiedArgs) {
NativeClient.log(`invoke:${objectName}.${functionName}(${stringifiedArgs})`);
// NativeClient.log(`invoke:${objectName}.${functionName}(${stringifiedArgs})`)
try {
const thisObject = Reflect.get(window, objectName);
const thisFunction = Reflect.get(thisObject, functionName);
@ -113,7 +113,7 @@ function __invokeMethod(objectName, functionName, stringifiedArgs) {
const rawArgs = args.map(e => _rawValue(e));
const ret = Reflect.apply(thisFunction, thisObject, rawArgs);
const returnVal = ret ? JSON.stringify(_wrappedValue(ret)) : "";
NativeClient.log(`return:${returnVal}`);
// NativeClient.log(`return:${returnVal}`)
NativeClient.returnNative(returnVal);
}
catch (e) {