From ad2bca189ff92fb573c4da8567593c9057e1756d Mon Sep 17 00:00:00 2001 From: Peter Burns Date: Mon, 27 Apr 2020 10:21:48 -0700 Subject: [PATCH] Fix a couple more compiler warnings Fixes warnings in some internal builds. --- externs/webcomponents-externs.js | 1 + lib/utils/boot.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/externs/webcomponents-externs.js b/externs/webcomponents-externs.js index b773a92834..05bdd16a04 100644 --- a/externs/webcomponents-externs.js +++ b/externs/webcomponents-externs.js @@ -32,6 +32,7 @@ window.HTMLImports = HTMLImports; var ShadyDOM = {}; ShadyDOM.inUse; +ShadyDOM.composedPath; ShadyDOM.flush = function() {}; diff --git a/lib/utils/boot.js b/lib/utils/boot.js index d2bce39263..5e726bbd9f 100644 --- a/lib/utils/boot.js +++ b/lib/utils/boot.js @@ -13,8 +13,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN * When using Closure Compiler, JSCompiler_renameProperty(property, object) is replaced by the munged name for object[property] * We cannot alias this function, so we have to use a small shim that has the same behavior when not compiling. * - * @param {string} prop Property name - * @param {?Object} obj Reference object + * @param {?} prop Property name + * @param {*} obj Reference object * @return {string} Potentially renamed property name */ window.JSCompiler_renameProperty = function(prop, obj) {