Skip to content

Commit b44c13b

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

File tree

1 file changed

+1
-1
lines changed
  • modules/angular2/src/core/compiler

1 file changed

+1
-1
lines changed

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)