Removed lookup of TemplateStringsArray for non-ES6 targets.

This will enable custom ES3/ES5 lib.d.ts files that omit the TemplateStringsArray type, but don't need it anyway.
This commit is contained in:
Daniel Rosenwasser
2014-11-12 17:23:00 -08:00
parent 00a94566f5
commit e8ec2966a2

View File

@@ -9102,7 +9102,10 @@ module ts {
globalNumberType = getGlobalType("Number");
globalBooleanType = getGlobalType("Boolean");
globalRegExpType = getGlobalType("RegExp");
globalTemplateStringsArrayType = getGlobalType("TemplateStringsArray");
if (compilerOptions.target >= ScriptTarget.ES6) {
globalTemplateStringsArrayType = getGlobalType("TemplateStringsArray");
}
}
initializeTypeChecker();