when run in console:
let b; {b} = {b:1} // run without error
{b} = {b:1} // empty line before this code, and run with error VM243:2 Uncaught SyntaxError: Unexpected token '=' ({b} = {b:1}) // run without error
when run in https://www.typescriptlang.org/play, error message like below:
Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the the whole assignment in parentheses.