w3c / geolocation

W3C Geolocation API
https://www.w3.org/TR/geolocation/
81 stars 56 forks source link

Section 1: Editorial - possible syntax error #53

Closed magnus-git closed 4 years ago

magnus-git commented 4 years ago

During the security review, in example 4 in introduction: navigator.geolocation.getCurrentPosition(successCallback, errorCallback, { maximumAge: 600000, }); The comma after 600000 seems spurious.

reillyeon commented 4 years ago

Trailing commas are not syntax errors in Javascript. Leaving a trailing comma in a multi-line object literal makes it easier to add new keys without modifying nearby lines.