Accessors: setter does not work
<p>I am playing with Javascript accessor properties (I am restarting from zero to study javascript), trying to create getter and setter for a simple object, here the code:</p>

<pre><code>var dummy = {
        name: 'empty',
        description: 'static description',

        get nameAccessor(){return 'name value is: ' + this.name;},
        set nameAccessor(value){ this.name = value;},

        get descAccessor(){return 'desccription value is: ' + this.description;},
};

console.log(dummy.nameAccessor);
console.log(dummy.nameAccessor('Mazinga'));
console.log(dummy.nameAccessor);
</code></pre>

<p>But it throws an error: </p>

<blockquote>
  <p>Uncaught TypeError: Property 'nameAccessor' of object # is not
  a function</p>
</blockquote>

<p>when it executes the setter code:</p>

<pre><code>    console.log(dummy.nameAccessor('Mazinga'));
</code></pre>

<p>What's going wrong here?</p>

<p><strong>EDIT</strong>:</p>

<p>Ok, it seems to be not a well-known feature of javascript, butI followed this example from 
<a href="http://rads.stackoverflow.com/amzn/click/0596805527" rel="nofollow">Javascript: Definitive Guide</a></p>

<pre><code>var o = { 
          data_prop: value,
          get accessor_prop() { /* function body here */ },
          set accessor_prop(value) { /* function body here */ }
    };
</code></pre>
