File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
modules/angular2/src/facade Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ import 'dart:math' as math;
55import 'dart:convert' as convert;
66import 'dart:async' show Future;
77
8+ String getTypeNameForDebugging (Type type) => type.toString ();
9+
810class Math {
911 static final _random = new math.Random ();
1012 static int floor (num n) => n.floor ();
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ export {_global as global};
55export var Type = Function ;
66export type Type = new ( ...args : any [ ] ) => any ;
77
8+ export function getTypeNameForDebugging ( type : Type ) : string {
9+ return type [ 'name' ] ;
10+ }
11+
812export class BaseException extends Error {
913 stack ;
1014 constructor ( public message ?: string , public originalException ?, public originalStack ?) {
You can’t perform that action at this time.
0 commit comments