Ringobot log - RingoJS IRC channel: #ringojs on irc.freenode.net

2010-09-01:

[6:02] <emilis_info> this one crashes with StackOverflowError: obj = {};obj.__defineGetter__("prop", function() { if (!this.prop) this.prop = require("config"); return this.prop; });obj.prop
[6:15] <oberhamsi> hi emilis_info, isn't this expected.. you call the getter inside the getter
[6:16] <emilis_info> duh
[6:16] <emilis_info> frequent noob mistake, I guess :)
[6:17] <oberhamsi> :)