title: Object destructuring and handling exceptions
body: <p>In javascript, is it possible to perform object destructing while still handling an exception?  For example this is what I would ideally like to be able to do the syntax isn't valid</p>
  
  <pre><code>let body;
  let err;
  
  try {
    { body } = await networkRequest(...); // invalid syntax
  } catch (e) {
    err = e;
  }
  </code></pre>
  
  <p>From what I can tell the options are to either:</p>
  
  <ol>
  <li><p>Don't use object destructuring</p></li>
  <li><p>Don't handle the exception</p></li>
  <li><p>Scope the destructed to the try block</p></li>
  </ol>
  
  <p>Is it possible to achieve object destructuring and handle an exception?</p>