diff --git a/modules/angular2/src/facade/async.ts b/modules/angular2/src/facade/async.ts index f6ff6ff863..613bff2497 100644 --- a/modules/angular2/src/facade/async.ts +++ b/modules/angular2/src/facade/async.ts @@ -5,7 +5,7 @@ import {global, isPresent} from 'angular2/src/facade/lang'; import {List} from 'angular2/src/facade/collection'; import * as Rx from 'rx'; -export var Promise = (global).Promise; +export {Promise}; export interface PromiseCompleter { promise: Promise; diff --git a/modules/angular2/test/facade/async_spec.ts b/modules/angular2/test/facade/async_spec.ts index 253384619e..79ac9294c7 100644 --- a/modules/angular2/test/facade/async_spec.ts +++ b/modules/angular2/test/facade/async_spec.ts @@ -77,11 +77,13 @@ export function main() { PromiseWrapper.then(one.promise, (_) => { expect(allCalled).toBe(false); two.resolve('two'); + return null; }); PromiseWrapper.then(all, (_) => { allCalled = true; async.done(); + return null; }); one.resolve('one');