From b44c13bc4672967104b72c1088075e65d6aa5c58 Mon Sep 17 00:00:00 2001 From: Marc Laval Date: Fri, 2 Oct 2015 13:55:12 +0200 Subject: [PATCH] fix(compiler): const is not supported in IE9 and IE10 Closes #4465 --- modules/angular2/src/core/compiler/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/angular2/src/core/compiler/util.ts b/modules/angular2/src/core/compiler/util.ts index c2200d5ba5..1912b41f28 100644 --- a/modules/angular2/src/core/compiler/util.ts +++ b/modules/angular2/src/core/compiler/util.ts @@ -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}'] = `; }