title: How to get the "with" statement feature in strict mode?
body: <p>When putting Javascript into strict mode, the "with" statement is no longer allowed.  How could I duplicate it's purpose?</p>
  
  <p>For example, getting it to search for arrays before searching for variables...</p>
  
  <pre><code>        var a = {x:1, y:2};
          var x = 3;
          with (a) {
              console.log(x);
          }
  </code></pre>
  
  <p>The console would display 1.  But in strict mode, "with" would have to be removed.  If the console statement was outside of it, it would display 3.</p>