title: Constructor in Strict Mode
body: <p>I've been searching a lot for an answer to this REALLY simple question, but I cannot find it:</p>
  <p>&quot; How to create constructors in strict mode ? &quot;</p>
  <pre><code>fetch(`https://restcountries.com/v3.1/name/${country_name}`, )
  .then(response =&gt; {
  
      if(! response.ok)
          throw new MyError(response.statusText, response.status)
  </code></pre>
  <p>[...]</p>
  <pre><code>.catch(err =&gt; {
      renderNotFound(err.message, err.code)
  </code></pre>
  <p>[...]</p>
  <pre><code>class MyError {
  constructor(message, code) {
      this.message = message
      this.code = code
  }}
  </code></pre>
  <p>I know the <code>.this</code> keyword resolves to <code>undefined</code> in strict node. So how can we work around it to create constructors?</p>
  <p>Thanks in advance</p>
  <p>EDIT: fixed a missing <code>}</code> in the class MyError</p>