title: SAFARI : Unexpected token '='. Expected an opening '(' before a method's parameter list
body: <p>Got this code, that works perfectly in all browsers but not in Safari (Version 11.1.2).</p>
  
  <pre class="lang-js prettyprint-override"><code>class Account {
   accountFields = ['field1', 'field2', 'field3']
  }
  </code></pre>
  
  <p>Getting the following error in Safari debugger:</p>
  
  <blockquote>
    <p>Unexpected token '='. Expected an opening '(' before a method's
    parameter list</p>
  </blockquote>
  
  <p>So I tried to add <code>()</code> everywhere, around the array, before, after, etc. Nothing works.</p>