diff --git a/doric-js/bundle/doric-web.js b/doric-js/bundle/doric-web.js index e5e628f4..a640eb13 100644 --- a/doric-js/bundle/doric-web.js +++ b/doric-js/bundle/doric-web.js @@ -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) { diff --git a/doric-js/lib/index.web.js b/doric-js/lib/index.web.js index 8cae7f48..6069763b 100644 --- a/doric-js/lib/index.web.js +++ b/doric-js/lib/index.web.js @@ -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) {