Update compiled bundle
This commit is contained in:
parent
7282146e14
commit
00178196bf
@ -107,7 +107,7 @@ function __injectGlobalFunction(name) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
function __invokeMethod(objectName, functionName, stringifiedArgs) {
|
function __invokeMethod(objectName, functionName, stringifiedArgs) {
|
||||||
NativeClient.log(`invoke:${objectName}.${functionName}(${stringifiedArgs})`);
|
// NativeClient.log(`invoke:${objectName}.${functionName}(${stringifiedArgs})`)
|
||||||
try {
|
try {
|
||||||
const thisObject = Reflect.get(window, objectName);
|
const thisObject = Reflect.get(window, objectName);
|
||||||
const thisFunction = Reflect.get(thisObject, functionName);
|
const thisFunction = Reflect.get(thisObject, functionName);
|
||||||
@ -115,7 +115,7 @@ function __invokeMethod(objectName, functionName, stringifiedArgs) {
|
|||||||
const rawArgs = args.map(e => _rawValue(e));
|
const rawArgs = args.map(e => _rawValue(e));
|
||||||
const ret = Reflect.apply(thisFunction, thisObject, rawArgs);
|
const ret = Reflect.apply(thisFunction, thisObject, rawArgs);
|
||||||
const returnVal = ret ? JSON.stringify(_wrappedValue(ret)) : "";
|
const returnVal = ret ? JSON.stringify(_wrappedValue(ret)) : "";
|
||||||
NativeClient.log(`return:${returnVal}`);
|
// NativeClient.log(`return:${returnVal}`)
|
||||||
NativeClient.returnNative(returnVal);
|
NativeClient.returnNative(returnVal);
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
|
@ -105,7 +105,7 @@ function __injectGlobalFunction(name) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
function __invokeMethod(objectName, functionName, stringifiedArgs) {
|
function __invokeMethod(objectName, functionName, stringifiedArgs) {
|
||||||
NativeClient.log(`invoke:${objectName}.${functionName}(${stringifiedArgs})`);
|
// NativeClient.log(`invoke:${objectName}.${functionName}(${stringifiedArgs})`)
|
||||||
try {
|
try {
|
||||||
const thisObject = Reflect.get(window, objectName);
|
const thisObject = Reflect.get(window, objectName);
|
||||||
const thisFunction = Reflect.get(thisObject, functionName);
|
const thisFunction = Reflect.get(thisObject, functionName);
|
||||||
@ -113,7 +113,7 @@ function __invokeMethod(objectName, functionName, stringifiedArgs) {
|
|||||||
const rawArgs = args.map(e => _rawValue(e));
|
const rawArgs = args.map(e => _rawValue(e));
|
||||||
const ret = Reflect.apply(thisFunction, thisObject, rawArgs);
|
const ret = Reflect.apply(thisFunction, thisObject, rawArgs);
|
||||||
const returnVal = ret ? JSON.stringify(_wrappedValue(ret)) : "";
|
const returnVal = ret ? JSON.stringify(_wrappedValue(ret)) : "";
|
||||||
NativeClient.log(`return:${returnVal}`);
|
// NativeClient.log(`return:${returnVal}`)
|
||||||
NativeClient.returnNative(returnVal);
|
NativeClient.returnNative(returnVal);
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
|
Reference in New Issue
Block a user