<h2 dir="auto">Bug Report</h2>

<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I would like to work on a fix!</li>
</ul>
<p dir="auto"><strong>Input Code</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const babel = require('@babel/parser');
babel.parse(
  'class Foo { get test() {} }',
  {
    plugins: ['estree', 'typescript']
  }
);"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">babel</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'@babel/parser'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">babel</span><span class="pl-kos">.</span><span class="pl-en">parse</span><span class="pl-kos">(</span>
  <span class="pl-s">'class Foo { get test() {} }'</span><span class="pl-kos">,</span>
  <span class="pl-kos">{</span>
    <span class="pl-c1">plugins</span>: <span class="pl-kos">[</span><span class="pl-s">'estree'</span><span class="pl-kos">,</span> <span class="pl-s">'typescript'</span><span class="pl-kos">]</span>
  <span class="pl-kos">}</span>
<span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Actual behaviour</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Thrown:
TypeError: Cannot read property '0' of undefined
    at Object.getGetterSetterExpectedParamCount (/Users/bradzacher/github/typescript-eslint/packages/typescript-estree/node_modules/@babel/parser/lib/index.js:7318:37)
    at Object.checkGetterSetterParams (/Users/bradzacher/github/typescript-eslint/packages/typescript-estree/node_modules/@babel/parser/lib/index.js:11022:29)
    at Object.parseClassMemberWithIsStatic (/Users/bradzacher/github/typescript-eslint/packages/typescript-estree/node_modules/@babel/parser/lib/index.js:12600:12)
    at Object.parseClassMemberWithIsStatic (/Users/bradzacher/github/typescript-eslint/packages/typescript-estree/node_modules/@babel/parser/lib/index.js:6851:11)
    at Object.parseClassMember (/Users/bradzacher/github/typescript-eslint/packages/typescript-estree/node_modules/@babel/parser/lib/index.js:12501:10)
    at callParseClassMember (/Users/bradzacher/github/typescript-eslint/packages/typescript-estree/node_modules/@babel/parser/lib/index.js:6815:13)
    at Object.parseClassMember (/Users/bradzacher/github/typescript-eslint/packages/typescript-estree/node_modules/@babel/parser/lib/index.js:6821:7)"><pre class="notranslate"><code class="notranslate">Thrown:
TypeError: Cannot read property '0' of undefined
    at Object.getGetterSetterExpectedParamCount (/Users/bradzacher/github/typescript-eslint/packages/typescript-estree/node_modules/@babel/parser/lib/index.js:7318:37)
    at Object.checkGetterSetterParams (/Users/bradzacher/github/typescript-eslint/packages/typescript-estree/node_modules/@babel/parser/lib/index.js:11022:29)
    at Object.parseClassMemberWithIsStatic (/Users/bradzacher/github/typescript-eslint/packages/typescript-estree/node_modules/@babel/parser/lib/index.js:12600:12)
    at Object.parseClassMemberWithIsStatic (/Users/bradzacher/github/typescript-eslint/packages/typescript-estree/node_modules/@babel/parser/lib/index.js:6851:11)
    at Object.parseClassMember (/Users/bradzacher/github/typescript-eslint/packages/typescript-estree/node_modules/@babel/parser/lib/index.js:12501:10)
    at callParseClassMember (/Users/bradzacher/github/typescript-eslint/packages/typescript-estree/node_modules/@babel/parser/lib/index.js:6815:13)
    at Object.parseClassMember (/Users/bradzacher/github/typescript-eslint/packages/typescript-estree/node_modules/@babel/parser/lib/index.js:6821:7)
</code></pre></div>
<p dir="auto"><strong>Environment</strong></p>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="  System:
    OS: macOS 10.15.7
  Binaries:
    Node: 12.14.1 - ~/.nvm/versions/node/v12.14.1/bin/node
    Yarn: 1.22.4 - ~/.yarn/bin/yarn
    npm: 6.13.4 - ~/.nvm/versions/node/v12.14.1/bin/npm
  npmPackages:
    @babel/parser: ^7.12.5 =&gt; 7.12.5 
    @babel/types: ^7.12.6 =&gt; 7.12.6"><pre class="notranslate"><code class="notranslate">  System:
    OS: macOS 10.15.7
  Binaries:
    Node: 12.14.1 - ~/.nvm/versions/node/v12.14.1/bin/node
    Yarn: 1.22.4 - ~/.yarn/bin/yarn
    npm: 6.13.4 - ~/.nvm/versions/node/v12.14.1/bin/npm
  npmPackages:
    @babel/parser: ^7.12.5 =&gt; 7.12.5 
    @babel/types: ^7.12.6 =&gt; 7.12.6
</code></pre></div>
<p dir="auto"><strong>Possible Solution</strong></p>

<p dir="auto"><strong>Additional context</strong></p>
<h2 dir="auto">Bug Report</h2>

<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I would like to work on a fix!</li>
</ul>

<p dir="auto"><strong>Current behavior</strong></p>
<p dir="auto">TypeError is <code class="notranslate">TypeError: Cannot read property '0' of undefined</code> is thrown.</p>
<p dir="auto"><strong>Input Code</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="({set [x](v) {}});"><pre class="notranslate"><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-k">set</span> <span class="pl-kos">[</span><span class="pl-s1">x</span><span class="pl-kos">]</span><span class="pl-kos">(</span><span class="pl-s1">v</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Expected behavior</strong></p>
<p dir="auto">No TypeError is thrown.</p>
<p dir="auto"><strong>Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)</strong></p>
<p dir="auto">Use <code class="notranslate">@babel/parser</code> directly</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const { parse } = require(&quot;@babel/parser&quot;);
const result = parse(`({set [x](v) {}});`, {
  plugins: [&quot;estree&quot;, &quot;typescript&quot;],
});"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span> parse <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"@babel/parser"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-en">parse</span><span class="pl-kos">(</span><span class="pl-s">`({set [x](v) {}});`</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
  <span class="pl-c1">plugins</span>: <span class="pl-kos">[</span><span class="pl-s">"estree"</span><span class="pl-kos">,</span> <span class="pl-s">"typescript"</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Environment</strong></p>

<p dir="auto"><strong>Possible Solution</strong></p>

<p dir="auto"><strong>Additional context</strong></p>

<p dir="auto">Probably this is a regression of 7.12</p>