title: List of all JavaScript "Uncaught SyntaxError: Invalid regular expression" messages
body: <p>Is there a comprehensive list of all possible JavaScript RegEx syntax violation error messages maintained anywhere?</p>
  
  <pre><code>try {
      new RegExp(pattern);
  } catch (e) {
      console.log(e.message);
  }
  </code></pre>
  
  <p>For example, some possible error messages are:</p>
  
  <pre><code>Uncaught SyntaxError: Invalid regular expression: /(/: Unterminated group
  Uncaught SyntaxError: Invalid regular expression: /+/: Nothing to repeat
  Uncaught SyntaxError: Invalid regular expression: /\/: \ at end of pattern
  </code></pre>