Comments aren't allowed in JSON files (as seen in this answer). So, my question is if comments are allowed in javascript object declaration (in JSON like notation).
Example:
var myObject = {
prop1: 'value1', // prop1 description
prop2: 'value2' /* prop2 description */
}
Is this guaranteed to work or its browser dependent?