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

2010-06-22:

[3:10] * Dantman wonders what is causing his old VPS to jump in CPU usage every 6h but doesn't feel like investigating
[3:31] <mikeal> oh man
[3:31] <mikeal> i need to sign a CLA now
[3:31] <mikeal> node is hitting the big time
[3:32] <mikeal> big fancy project, big legal paper
[9:03] <ondras> hm
[9:03] <ondras> gurus
[9:03] <ondras> this one is puzzling me:
[9:03] <ondras> (function(){ ["var y=4"].forEach(eval); return y; })()
[9:03] <ondras> however, this works: (function(){ eval("var y=4"); return y; })()
[9:04] <ondras> ha, got it!
[9:05] <oberhamsi> ondras, first works on rhino
[9:13] <ondras> hm
[9:13] <ondras> does not work in sm
[9:14] <ondras> I have even more advanced example
[9:15] <ondras> this looks truly like a magic
[9:15] <ondras> (function() {
[9:15] <ondras> ["var bbh; bbh=13; alert(bbh);"].forEach(eval)
[9:15] <ondras> })()
[9:15] <ondras> does *not* work in sm
[9:19] <ondras> hehe, further simplified version:
[9:20] <ondras> (function() { ["var x"].forEach(eval); })()
[9:20] <ondras> ^^ exception
[9:20] <ondras> wow
[9:21] <oberhamsi> wel that runs but does nothing :) at least no exceptino
[9:21] <oberhamsi> what's sm?
[9:22] <ondras> spidermonkey
[9:22] <oberhamsi> ah oaky
[9:22] <ondras> ReferenceError: x is not defined
[9:22] * ondras thoroughly confused
[9:22] <oberhamsi> strange
[12:39] <Wes-> ondras: How recent is your spidermonkey? There were changes made to enumeration around May 12 IIRC
[12:40] <ondras> Wes-: not sure - current firefox
[12:41] <Wes-> ondras: Okay, that predates the change

 

 

Logs by date :