[tests] misc type coercion
This commit is contained in:
parent
76b4399795
commit
e19e87b0aa
|
@ -91,7 +91,7 @@ module.exports = {
|
||||||
|
|
||||||
case EXECUTE: {
|
case EXECUTE: {
|
||||||
const script = await getBundle(request);
|
const script = await getBundle(request);
|
||||||
if (global.bridge.context == null) {
|
if (global.bridge.context === null) {
|
||||||
throw new Error('VM context was not prepared.');
|
throw new Error('VM context was not prepared.');
|
||||||
}
|
}
|
||||||
if (request.inject) {
|
if (request.inject) {
|
||||||
|
@ -109,7 +109,7 @@ module.exports = {
|
||||||
let returnValue = [[], [], [], 0];
|
let returnValue = [[], [], [], 0];
|
||||||
try {
|
try {
|
||||||
if (
|
if (
|
||||||
global.bridge.context != null &&
|
global.bridge.context !== null &&
|
||||||
typeof global.bridge.context.__fbBatchedBridge === 'object'
|
typeof global.bridge.context.__fbBatchedBridge === 'object'
|
||||||
) {
|
) {
|
||||||
returnValue = global.bridge.context.__fbBatchedBridge[method].apply(
|
returnValue = global.bridge.context.__fbBatchedBridge[method].apply(
|
||||||
|
|
Loading…
Reference in New Issue