Skip to content

Commit b44c13b

Browse files
committed
fix(compiler): const is not supported in IE9 and IE10
Closes #4465
1 parent 6ae9686 commit b44c13b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • modules/angular2/src/core/compiler

‎modules/angular2/src/core/compiler/util.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function escapeString(input: string, re: RegExp): string {
4646
}
4747

4848
export function codeGenExportVariable(name: string, isConst: boolean = false): string {
49-
var declaration = isConst ? `const ${name}` : `var ${name}`;
49+
var declaration = IS_DART && isConst ? `const ${name}` : `var ${name}`;
5050
return IS_DART ? `${declaration} = ` : `${declaration} = exports['${name}'] = `;
5151
}
5252

0 commit comments

Comments
 (0)