HoriSun / closure-compiler

Automatically exported from code.google.com/p/closure-compiler
0 stars 0 forks source link

Compiler produces object literal with duplicate key, which is not compatible with strict mode #1313

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
(function(){
var obj = {"bbb":""}

obj["bbb"]="aaa";
window.aaa = obj;
})();

output:
window.a={bbb:"",bbb:"aaa"};

What is the expected output? What do you see instead?
window.a={bbb:"aaa"};

What version of the product are you using? On what operating system?
http://closure-compiler.appspot.com/home

Please provide any additional information below.

Original issue reported on code.google.com by zengfen...@gmail.com on 22 Apr 2014 at 6:43

GoogleCodeExporter commented 9 years ago

Original comment by tbreisac...@google.com on 22 Apr 2014 at 3:49

GoogleCodeExporter commented 9 years ago
Issue tracking has been migrated to github. Please make any further comments on 
this issue through https://github.com/google/closure-compiler/issues

Original comment by blic...@google.com on 1 May 2014 at 6:31

GoogleCodeExporter commented 9 years ago

Original comment by blic...@google.com on 1 May 2014 at 6:34