Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Closure Compiler issue with 3.0 preview #268

Open
RebeccaStevens opened this issue Feb 26, 2018 · 2 comments
Open

Closure Compiler issue with 3.0 preview #268

RebeccaStevens opened this issue Feb 26, 2018 · 2 comments

Comments

@RebeccaStevens
Copy link

When using the Closure Compiler with the 3.0 preview version of this element, Constant reassigned errors occur:

stdin:25174: ERROR - Constant reassigned: _lockedElementCache
  _lockedElementCache = [];
  ^^^^^^^^^^^^^^^^^^^

stdin:25175: ERROR - Constant reassigned: _unlockedElementCache
  _unlockedElementCache = [];
  ^^^^^^^^^^^^^^^^^^^^^

version: @polymer/iron-overlay-behavior#3.0.0-pre.10

Lines at fault

export const _lockedElementCache = null;
export const _unlockedElementCache = null;

If I change the lines above to use let instead of const, the compiler no longer complains.

@RebeccaStevens
Copy link
Author

Related #267

@valdrinkoshi
Copy link
Member

valdrinkoshi commented Feb 27, 2018

Looks like polymer-modulizer always converts object properties to const variables - @aomarks @FredKSchott could you take a look?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants