Mochabot log - CommonJS IRC channel: #commonjs on irc.freenode.net

2009-11-01:

[9:27] <ondras> guys, one question regarding Modules - is there any recommendation regarding the context in which is the module code executed, i.e. what is the value of "this" inside a module?
[9:33] <kriskowal> ondras: there's no present convention
[9:34] <ondras> kriskowal: i thought that
[9:34] <kriskowal> in helma, "this" is the module top-level scope object, which contains the "require" function, "exports" and any top-level vars
[9:34] <kriskowal> in narwhal, it's the global, i think, but we never use it
[9:34] <ondras> the same in v8cgi
[9:34] <ondras> just wanted to make sure I was not overlooking something
[9:34] <kriskowal> it's worth considering making it utterly useless
[9:35] <ondras> agreed
[11:05] <ashb> in flusspferd i think its the function scope in which the module executes
[11:06] <ashb> fn.call(fn,require,module,...) etc
[12:45] <ondras> hmhm
[21:29] <rektide> is there an env-js irc channel anywhere?
[21:32] <MisterN> rektide: what is env-js?
[21:33] <evilstreak> John Resig's browser-on-the-server thing, I think
[21:33] <evilstreak> well
[21:33] <evilstreak> browser-on-the-rhino thing anyway

 

 

Logs by date :