[x3d-public] impact for JSON: ES6 and duplicate object literal properties
yottzumm at gmail.com
yottzumm at gmail.com
Sun Dec 18 06:01:01 PST 2016
Note that in ES6, even in strict mode, the following will not cause an error:
var books = {
title: “Understanding ECMAScript 6”,
title: “JavaScript: The Good, the Bad and the Ugly”
};
However,
books.title === “JavaScript: The Good, the Bad and the Ugly”
This will be important for JSON linters to catch, unless we want to do streaming JSON (we don’t).
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20161218/e08e8492/attachment.html>
More information about the x3d-public
mailing list