<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Comments on snippet: 'ECMAScript 5 Getter/Setter'</title>
    <description>Snipplr comments feed</description>
    <link>https://ipv6.snipplr.com/</link>
    <lastBuildDate>Thu, 16 Apr 2026 05:00:07 +0000</lastBuildDate>
    <item>
      <title>reelfernandes said on 11/Apr/2011</title>
      <link>https://ipv6.snipplr.com/view/51909/ecmascript-5-gettersetter</link>
      <description>&lt;p&gt;I meant to replace 'myProp' in the getter/setter functions with 'value';&#13;
&#13;
/*  COULDN'T IT HAVE JUST BEEN....&#13;
 &#13;
	Object.defineProperty( myObject, 'myProp', &#13;
	{&#13;
		writable:		false,&#13;
		enumerable:		false,&#13;
		configurable:	true,&#13;
		value: 'myDefault',&#13;
		get: function()&#13;
		{&#13;
			return value;&#13;
			//or return this.myProp;&#13;
		},&#13;
		set: function( v )&#13;
		{&#13;
			value = v+' is mo beta';&#13;
			//or this.myProp = v+'is mo beta';&#13;
		}&#13;
 &#13;
	});&#13;
*/&lt;/p&gt;</description>
      <pubDate>Mon, 11 Apr 2011 09:26:21 UTC</pubDate>
      <guid>https://ipv6.snipplr.com/view/51909/ecmascript-5-gettersetter</guid>
    </item>
  </channel>
</rss>
