<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=EN-US link=blue vlink="#954F72"><div class=WordSection1><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='border:none;padding:0in'>I can’t even find it in the ES5.1 standard. Hmm.</p><p class=MsoNormal style='border:none;padding:0in'><o:p> </o:p></p><p class=MsoNormal style='border:none;padding:0in'>John</p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On Dec 19, 2016 12:03 PM, "Don Brutzman" <<a href="mailto:brutzman@nps.edu">brutzman@nps.edu</a>> wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'><p class=MsoNormal style='margin-left:4.8pt'>Hmmm, maybe OK? Here are some tests.<o:p></o:p></p></blockquote></div></div></div><div><p class=MsoNormal>Maybe. I'd like to put "use strict"; in front of it and run it through some browsers but I've been giving my hands a break. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Codepen.io reports an error in chrome.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div><div><div><div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'><div><p class=MsoNormal style='margin-left:4.8pt'><br><br>On 12/18/2016 6:01 AM, <a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a> wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'><p class=MsoNormal style='margin-left:9.6pt'>Note that in ES6, even in strict mode, the following will not cause an error:<br><br>var books = {<br> title: “Understanding ECMAScript 6”,<br> title: “JavaScript: The Good, the Bad and the Ugly”<br>};<br><br>However,<br><br>books.title === “JavaScript: The Good, the Bad and the Ugly”<o:p></o:p></p></blockquote><p class=MsoNormal style='margin-left:4.8pt'><o:p> </o:p></p></div><p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:39.45pt'>Might you know the ES6 specification paragraph?<br><br> <a href="http://www.ecma-international.org/ecma-262/6.0/#sec-terms-and-definitions-object" target="_blank">http://www.ecma-international.org/ecma-262/6.0/#sec-terms-and-definitions-object</a><o:p></o:p></p></blockquote></div></div></div></div><p class=MsoNormal>There are two mentions of “object literal” in standard and they appear unrelated. It’s mentioned under “Duplicate Object Literal Properties” on page 75 of Understanding ECMAScript 6:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> “But in ECMAScript 6, the duplicate property check was removed. Strict and non-strict mode code no longer check for duplicate properties.”<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I think maybe it’s just that the JSON parsers don’t catch it.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>John<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>