From 7745d431ac9b17f0437c1c616ee34b33de16dc38 Mon Sep 17 00:00:00 2001 From: Peter Burns Date: Mon, 14 Jan 2019 16:52:20 -0800 Subject: [PATCH] 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. --- externs/webcomponents-externs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/externs/webcomponents-externs.js b/externs/webcomponents-externs.js index 4a1987d54d..df0f46b8f0 100644 --- a/externs/webcomponents-externs.js +++ b/externs/webcomponents-externs.js @@ -33,7 +33,7 @@ let ShadyDOM = { window.ShadyDOM = ShadyDOM; -let WebComponents = {}; +var WebComponents = {}; window.WebComponents = WebComponents; /** @type {Element} */