react-native-macos/React/CxxModule
aleclarson dc893756b8 Properly validate JS->native method calls (#23658)
Summary:
Between invalidating a bridge and suspending its JS thread, native modules may have their methods called.

Only warn when a native module has been invalidated, which happens right before its JS thread is suspended.

Avoid initializing a native module's instance if its bridge is invalidated.

/cc fkgozali f945212447 (commitcomment-32467567)

[iOS] [Fixed] - Properly validate JS->native method calls
Pull Request resolved: https://github.com/facebook/react-native/pull/23658

Differential Revision: D14287594

Pulled By: fkgozali

fbshipit-source-id: 89dd1906a0c55f3f48ba4ff220aac0cddf2eb822
2019-03-04 17:39:53 -08:00
..
DispatchMessageQueueThread.h Add assorted missing includes in xplat 2019-02-28 00:52:48 -08:00
RCTCxxMethod.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTCxxMethod.mm Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTCxxModule.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTCxxModule.mm Start using getConstants 2019-02-04 17:46:56 -08:00
RCTCxxUtils.h iOS changes to switch to JSI 2018-10-18 01:06:24 -07:00
RCTCxxUtils.mm iOS changes to switch to JSI 2018-10-18 01:06:24 -07:00
RCTNativeModule.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTNativeModule.mm Properly validate JS->native method calls (#23658) 2019-03-04 17:39:53 -08:00