"package" is a reserved word in ecmascript 3. ecmascript 5 reduced the reserved word by making it available to the browser that implemented it and presented it again in strict mode of ecmascript 5 (which should be the basis of future emcascript).
The escape script 5 also changed the restrictions on reserved words, in particular, you can use reserved words as property names (regardless of mode), but not variable names.
As a result, if you put the Closure Compiler in EcmaScript 5 mode, you can use "inBlock.package" and it will not complain, but if you try to use it in older versions of IE (I believe 8,7,6), it doesn’t will be able to make out. Most other browsers did not follow this part of the specification and were not affected.
source share