chore(facades): missed a couple places in #10620 (#10661)

This lets us skip src/facade/exception* when compiling modules other than core
This commit is contained in:
Alex Eagle
2016-08-11 08:39:13 -07:00
committed by vikerman
parent b96869afd2
commit 7fac4efede
3 changed files with 7 additions and 6 deletions

View File

@ -12,7 +12,6 @@ import {Observer} from 'rxjs/Observer';
import {BaseResponseOptions, ResponseOptions} from '../base_response_options';
import {ReadyState, RequestMethod, ResponseType} from '../enums';
import {makeTypeError} from '../facade/exceptions';
import {StringWrapper, isPresent} from '../facade/lang';
import {Connection, ConnectionBackend} from '../interfaces';
import {Request} from '../static_request';
@ -61,7 +60,7 @@ export class JSONPConnection_ extends JSONPConnection {
req: Request, private _dom: BrowserJsonp, private baseResponseOptions?: ResponseOptions) {
super();
if (req.method !== RequestMethod.Get) {
throw makeTypeError(JSONP_ERR_WRONG_METHOD);
throw new TypeError(JSONP_ERR_WRONG_METHOD);
}
this.request = req;
this.response = new Observable<Response>((responseObserver: Observer<Response>) => {