From 1d24e2cf23e798f34bd5f282ee766ba5753dd332 Mon Sep 17 00:00:00 2001 From: Ian Riley Date: Mon, 1 Jun 2015 17:49:14 -0700 Subject: [PATCH] fix(Global && src/facade && Protractor): Allows List to be imported. Allows the List type to be imported from 'angular2/src/facade/collection' --- modules/angular2/globals.d.ts | 2 +- modules/angular2/src/facade/lang.ts | 1 + protractor-shared.js | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/angular2/globals.d.ts b/modules/angular2/globals.d.ts index 599b9c31c8..d2d82d68f7 100644 --- a/modules/angular2/globals.d.ts +++ b/modules/angular2/globals.d.ts @@ -3,7 +3,7 @@ */ /// - +/// declare var assert: any; declare type int = number; diff --git a/modules/angular2/src/facade/lang.ts b/modules/angular2/src/facade/lang.ts index bb5982a119..8a304828c1 100644 --- a/modules/angular2/src/facade/lang.ts +++ b/modules/angular2/src/facade/lang.ts @@ -1,3 +1,4 @@ +/// var _global: BrowserNodeGlobal = (typeof window === 'undefined' ? global : window); export {_global as global}; diff --git a/protractor-shared.js b/protractor-shared.js index 77590a99d5..790ce685d0 100644 --- a/protractor-shared.js +++ b/protractor-shared.js @@ -1,5 +1,6 @@ // load traceur runtime as our tests are written in es6 require('traceur/bin/traceur-runtime.js'); +require('reflect-metadata'); var fs = require('fs-extra'); var argv = require('yargs') @@ -250,4 +251,4 @@ function mergeInto(src, target) { target[prop] = src[prop]; } return target; - } \ No newline at end of file + }