function f() { const x = 1; x = 2; } try { f(); } catch (e) {}