feat(http): add support for JSONP requests

Closes #2905
Closes #2818
This commit is contained in:
Caitlin Potter
2015-07-14 19:53:04 -05:00
parent b4cde697b5
commit 81abc39929
21 changed files with 566 additions and 12 deletions

View File

@ -190,6 +190,10 @@ class BaseException extends Error {
}
}
Error makeTypeError([String message = ""]) {
return new BaseException(message);
}
const _NAN_KEY = const Object();
// Dart can have identical(str1, str2) == false while str1 == str2

View File

@ -15,6 +15,10 @@ export class BaseException extends Error {
toString(): string { return this.message; }
}
export function makeTypeError(message?: string): Error {
return new TypeError(message);
}
export var Math = _global.Math;
export var Date = _global.Date;