feat(facade): add getTypeNameForDebugging function

This commit is contained in:
Brian Ford 2015-07-13 14:22:43 -07:00
parent cd532b00d4
commit ccb41632c7
2 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,8 @@ import 'dart:math' as math;
import 'dart:convert' as convert;
import 'dart:async' show Future;
String getTypeNameForDebugging(Type type) => type.toString();
class Math {
static final _random = new math.Random();
static int floor(num n) => n.floor();

View File

@ -5,6 +5,10 @@ export {_global as global};
export var Type = Function;
export type Type = new (...args: any[]) => any;
export function getTypeNameForDebugging(type: Type): string {
return type['name'];
}
export class BaseException extends Error {
stack;
constructor(public message?: string, public originalException?, public originalStack?) {