google / closure-compiler

A JavaScript checker and optimizer.
https://developers.google.com/closure/compiler/
Apache License 2.0
7.4k stars 1.15k forks source link

Const property not respected without collapse properties or in IDE mode #150

Open blickly opened 10 years ago

blickly commented 10 years ago

This issue was imported from Closure Compiler's previous home at http://closure-compiler.googlecode.com

The link to the original issue is: https://blickly.github.io/closure-compiler-issues/#1220

concavelenz commented 10 years ago

There are two kinds of constant properties: properties on global objects and instance properties. instances properties are handled by the access control checks, the others by check consts after collapse properties.

These should be unified.