Skip to content

Commit

Permalink
fix(compiler): const is not supported in IE9 and IE10
Browse files Browse the repository at this point in the history
Closes #4465
  • Loading branch information
marclaval committed Oct 2, 2015
1 parent 6ae9686 commit b44c13b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/angular2/src/core/compiler/util.ts
Expand Up @@ -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}'] = `;
}

Expand Down

0 comments on commit b44c13b

Please sign in to comment.