fix-next: Add accidentally removed System.import (#7706)

This commit is contained in:
Alexander Vakrilov
2019-08-21 16:45:00 +03:00
committed by Svetoslav
parent f3bd2e9c5b
commit efdd7e625c
3 changed files with 63 additions and 0 deletions

View File

@@ -23,3 +23,15 @@ global.zonedCallback = function (callback: Function): Function {
return callback;
}
};
(<any>global).System = {
import(path) {
return new Promise((resolve, reject) => {
try {
resolve(global.require(path));
} catch (e) {
reject(e);
}
});
}
};