diff --git a/modules/@angular/compiler/src/compile_metadata.ts b/modules/@angular/compiler/src/compile_metadata.ts index 78fe6cac50..89ec50b248 100644 --- a/modules/@angular/compiler/src/compile_metadata.ts +++ b/modules/@angular/compiler/src/compile_metadata.ts @@ -6,18 +6,19 @@ * found in the LICENSE file at https://angular.io/license */ -import {ChangeDetectionStrategy, SchemaMetadata, Type, ViewEncapsulation} from '@angular/core'; +import {BaseException, ChangeDetectionStrategy, SchemaMetadata, Type, ViewEncapsulation} from '@angular/core'; import {LifecycleHooks, reflector} from '../core_private'; import {ListWrapper, StringMapWrapper} from './facade/collection'; -import {BaseException, unimplemented} from './facade/exceptions'; import {isBlank, isPresent, isStringMap, normalizeBlank, normalizeBool} from './facade/lang'; import {CssSelector} from './selector'; import {getUrlScheme} from './url_resolver'; import {sanitizeIdentifier, splitAtColon} from './util'; - +function unimplemented(): any { + throw new BaseException('unimplemented'); +} // group 0: "[prop] or (event) or @trigger" // group 1: "prop" from "[prop]" diff --git a/modules/@angular/compiler/src/output/output_interpreter.ts b/modules/@angular/compiler/src/output/output_interpreter.ts index 715e78890d..7c602d9a7b 100644 --- a/modules/@angular/compiler/src/output/output_interpreter.ts +++ b/modules/@angular/compiler/src/output/output_interpreter.ts @@ -6,8 +6,9 @@ * found in the LICENSE file at https://angular.io/license */ +import {BaseException} from '@angular/core'; + import {ListWrapper} from '../facade/collection'; -import {BaseException, unimplemented} from '../facade/exceptions'; import {isPresent} from '../facade/lang'; import * as o from './output_ast'; diff --git a/modules/@angular/http/src/backends/jsonp_backend.ts b/modules/@angular/http/src/backends/jsonp_backend.ts index 69fc62d0e5..77cbead811 100644 --- a/modules/@angular/http/src/backends/jsonp_backend.ts +++ b/modules/@angular/http/src/backends/jsonp_backend.ts @@ -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((responseObserver: Observer) => {