mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
[Flow] Clean up react-native for Flow v0.15.0
This commit is contained in:
@@ -72,7 +72,9 @@ function setupDevtools() {
|
||||
}
|
||||
|
||||
function handleMessage(evt) {
|
||||
var data;
|
||||
// It's hard to handle JSON in a safe manner without inspecting it at
|
||||
// runtime, hence the any
|
||||
var data: any;
|
||||
try {
|
||||
data = JSON.parse(evt.data);
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user