<p dir="auto">Babel encounters an error when I put a decorator on a class method with computed key:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let foo = () =&gt; {
}

class Custom {
    @foo
    ['foo' + 'bar'](e) {
    }
}

// repl: Unexpected token (6:23)"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-en">foo</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span>
<span class="pl-kos">}</span>

<span class="pl-k">class</span> <span class="pl-v">Custom</span> <span class="pl-kos">{</span>
    @<span class="pl-en">foo</span>
    <span class="pl-kos">[</span><span class="pl-s">'foo'</span> <span class="pl-c1">+</span> <span class="pl-s">'bar'</span><span class="pl-kos">]</span><span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
    <span class="pl-kos">}</span>
<span class="pl-kos">}</span>

<span class="pl-c">// repl: Unexpected token (6:23)</span></pre></div>
<p dir="auto">I think it should be OK when decorators are used on computed property keys, the <code class="notranslate">key</code> argument in decorator factory should be the computed value</p>
<p dir="auto">Hi.</p>
<p dir="auto">I am getting an unexpected token error when trying to decorate a symbol keyed method.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="        class B {
            @bound
            [Symbol()] () { }
        }"><pre class="notranslate"><code class="notranslate">        class B {
            @bound
            [Symbol()] () { }
        }
</code></pre></div>