I would expect the code below to throw a syntax error, because of 'some string' [{}], but it just works fine. Although the property is undefined.
const object = {
property: 'some string' [{}]
}
console.log(object)
This on the other hand throws an error as expected:
const object = {
property: 'some string' []
}
console.log(object)