flowify a few more Libraries

This commit is contained in:
Basil Hosmer
2015-03-26 10:06:50 -07:00
parent 7e02a1e111
commit 030b264eb4
9 changed files with 57 additions and 23 deletions

View File

@@ -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: ' +