mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-30 22:48:23 +08:00
flowify a few more Libraries
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*
|
||||
* @providesModule ExceptionsManager
|
||||
* @flow
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
@@ -18,7 +19,13 @@ var parseErrorStack = require('parseErrorStack');
|
||||
|
||||
var sourceMapPromise;
|
||||
|
||||
function handleException(e) {
|
||||
type Exception = {
|
||||
sourceURL: string;
|
||||
line: number;
|
||||
message: string;
|
||||
}
|
||||
|
||||
function handleException(e: Exception) {
|
||||
var stack = parseErrorStack(e);
|
||||
console.error(
|
||||
'Error: ' +
|
||||
|
||||
Reference in New Issue
Block a user