Skip to content

Commit

Permalink
Externs should use var instead of let
Browse files Browse the repository at this point in the history
Multiple externs may declare the same symbol and that's ok. That doesn't work if an extern is declared with `let` instead of `var`, you get errors like: Duplicate let / const / class / function declaration in the same scope is not allowed.
  • Loading branch information
rictic authored Jan 15, 2019
1 parent 21930e7 commit 7745d43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion externs/webcomponents-externs.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ let ShadyDOM = {

window.ShadyDOM = ShadyDOM;

let WebComponents = {};
var WebComponents = {};
window.WebComponents = WebComponents;

/** @type {Element} */
Expand Down

0 comments on commit 7745d43

Please sign in to comment.