Externs should use var instead of let

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.
This commit is contained in:
Peter Burns
2019-01-14 16:52:20 -08:00
committed by GitHub
parent 21930e7ac6
commit 7745d431ac

View File

@@ -33,7 +33,7 @@ let ShadyDOM = {
window.ShadyDOM = ShadyDOM;
let WebComponents = {};
var WebComponents = {};
window.WebComponents = WebComponents;
/** @type {Element} */