Using eval with `with`
<p>I know <code>eval</code> and <code>with</code> are usually discouraged, but putting that aside for the moment, I'm having trouble getting this code to work:</p>

<pre><code>with({ a: 'hello world' }){
    var output = eval('{ text: a }')
}
</code></pre>

<p>I was expecting <code>output</code> to be the <strong>object</strong>:</p>

<pre><code>{ text: "hello world" }
</code></pre>

<p>but instead <code>output</code> is the <strong>string</strong>  'hello world'</p>

<p>Can someone help me see what I'm missing?</p>
