From e19e87b0aaace977f2f127c7f74d273375ef1c01 Mon Sep 17 00:00:00 2001 From: Salakar Date: Mon, 26 Mar 2018 19:47:54 +0100 Subject: [PATCH] [tests] misc type coercion --- tests-new/bridge/env/node/vm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests-new/bridge/env/node/vm.js b/tests-new/bridge/env/node/vm.js index 22523f5c..0801c5da 100644 --- a/tests-new/bridge/env/node/vm.js +++ b/tests-new/bridge/env/node/vm.js @@ -91,7 +91,7 @@ module.exports = { case EXECUTE: { const script = await getBundle(request); - if (global.bridge.context == null) { + if (global.bridge.context === null) { throw new Error('VM context was not prepared.'); } if (request.inject) { @@ -109,7 +109,7 @@ module.exports = { let returnValue = [[], [], [], 0]; try { if ( - global.bridge.context != null && + global.bridge.context !== null && typeof global.bridge.context.__fbBatchedBridge === 'object' ) { returnValue = global.bridge.context.__fbBatchedBridge[method].apply(