mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
dffb61dcbb
Summary: The captured `instance_` will result in a call to JVM code to release the reference when the lambda is destroyed. However, Hermes may destroy the lambda in a non-JVM background thread. Since `instance_` is a member of the class, and `this` is already captured, there is no need to capture it. Changelog: [Internal] Reviewed By: RSNara Differential Revision: D24141179 fbshipit-source-id: e3b268485ed229ee933281a80e5dbe2feba55719