Don't send bogus values to the app

Reviewed By: tadeuzagallo

Differential Revision: D3035881

fb-gh-sync-id: 6dc0018cd78195b34a782c21294f339026018ea6
shipit-source-id: 6dc0018cd78195b34a782c21294f339026018ea6
This commit is contained in:
Marc Horowitz
2016-03-11 04:34:57 -08:00
committed by Facebook Github Bot 6
parent 225899dcf0
commit 2c6a81d445

View File

@@ -33,7 +33,7 @@ onmessage = function(message) {
handler(object, sendReply);
} else {
// Other methods get called on the bridge
var returnValue = [[], [], [], [], []];
var returnValue = [[], [], [], 0];
try {
if (typeof __fbBatchedBridge === 'object') {
returnValue = __fbBatchedBridge[object.method].apply(null, object.arguments);