google / google/closure-compiler

"Iterable" unexpectedly exists in ECMASCRIPT5 mode

Open
#934 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.7k
Forks
1.2k
Avg merge
2d 12h
Merged PRs (30d)
6

Description

I compile using the "--language_in ECMASCRIPT5" setting (VERBOSE mode).
But I still get an error about a type collision with an ES6 feature:
"ERROR - Variable Iterable first declared in externs.zip//es6.js". ('Iterable' is my own definition in an extern).

In ECMASCRIPT5 mode I wouldn't expect ES6 warnings or errors? Shouldn't the compiler skip the es6.js extern file in this case?

Regards
/Fredrik Blomqvist

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.