Removing hasProperty check

This commit is contained in:
Richard Knoll 2016-08-19 17:06:59 -07:00
parent 473be82572
commit 00facc2084

View File

@ -19958,7 +19958,7 @@ namespace ts {
function getAmbientModules(): Symbol[] {
const result: Symbol[] = [];
for (const sym in globals) {
if (hasProperty(globals, sym) && ambientModuleSymbolRegex.test(sym)) {
if (ambientModuleSymbolRegex.test(sym)) {
result.push(globals[sym]);
}
}