Object.defineProperty for IE
<pre><code>var o = {}; // Creates a new object
</code></pre>

<p>Example of an object property added with <code>defineProperty</code> with a data property descriptor</p>

<pre><code>Object.defineProperty(o, "a", {value : 37,
                               writable : true,
                               enumerable : true,
                               configurable : true});
</code></pre>

<p>How to implement for IE7-8?(with attributes writable,enumerable,configurable)</p>
