4 ms·
Because you can't write and modify object that are shared with other thread while the process is going on without consequences: var str = '{}' await JS
by msoad 10y ago
Because you can't write and modify object that are shared with other thread while the process is going on without consequences:
var str = '{}'
await JSON.parseAsync(str);
str = '{"foo": 1}' // this line might run before line above