mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 11:34:23 +00:00
[ReactNative] Fix SPY_MODE to show all JS->N communication.
This commit is contained in:
parent
01151f8c7a
commit
47315af069
@ -122,10 +122,6 @@ class MessageQueue {
|
|||||||
(this._debugInfo[this._callbackID >> 5] = null);
|
(this._debugInfo[this._callbackID >> 5] = null);
|
||||||
|
|
||||||
this._debugInfo[this._callbackID >> 1] = [module, method];
|
this._debugInfo[this._callbackID >> 1] = [module, method];
|
||||||
if (SPY_MODE && isFinite(module)) {
|
|
||||||
console.log('JS->N : ' + this._remoteModuleTable[module] + '.' +
|
|
||||||
this._remoteMethodTable[module][method] + '(' + JSON.stringify(params) + ')');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
onFail && params.push(this._callbackID);
|
onFail && params.push(this._callbackID);
|
||||||
this._callbacks[this._callbackID++] = onFail;
|
this._callbacks[this._callbackID++] = onFail;
|
||||||
@ -135,6 +131,10 @@ class MessageQueue {
|
|||||||
this._queue[MODULE_IDS].push(module);
|
this._queue[MODULE_IDS].push(module);
|
||||||
this._queue[METHOD_IDS].push(method);
|
this._queue[METHOD_IDS].push(method);
|
||||||
this._queue[PARAMS].push(params);
|
this._queue[PARAMS].push(params);
|
||||||
|
if (__DEV__ && SPY_MODE && isFinite(module)) {
|
||||||
|
console.log('JS->N : ' + this._remoteModuleTable[module] + '.' +
|
||||||
|
this._remoteMethodTable[module][method] + '(' + JSON.stringify(params) + ')');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
__callFunction(module, method, args) {
|
__callFunction(module, method, args) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user