fix(compiler): const is not supported in IE9 and IE10

Closes #4465
This commit is contained in:
Marc Laval 2015-10-02 13:55:12 +02:00
parent 6ae9686a0d
commit b44c13bc46
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ function escapeString(input: string, re: RegExp): string {
}
export function codeGenExportVariable(name: string, isConst: boolean = false): string {
var declaration = isConst ? `const ${name}` : `var ${name}`;
var declaration = IS_DART && isConst ? `const ${name}` : `var ${name}`;
return IS_DART ? `${declaration} = ` : `${declaration} = exports['${name}'] = `;
}