Add experimental option to cache the .length access in downlevel for-of emit.

This commit is contained in:
Cyrus Najmabadi
2015-03-13 16:15:25 -07:00
parent 4a9187172e
commit d8d4719765
18 changed files with 163 additions and 42 deletions

View File

@@ -146,6 +146,12 @@ module ts {
description: Diagnostics.Preserve_new_lines_when_emitting_code,
experimental: true
},
{
name: "cacheDownlevelForOfLength",
type: "boolean",
description: "Cache length access when downlevel emitting for-of statements",
experimental: true,
},
{
name: "target",
shortName: "t",