gf3 / Jerk

Stupidly simple IRC bots in Javascript.
http://gf3.github.com/Jerk
The Unlicense
106 stars 17 forks source link

Error: print() has moved. Use require('sys') to bring it back. #3

Closed jfhbrook closed 14 years ago

jfhbrook commented 14 years ago

with

[josh@eevee lib]$ node --version
v0.1.100-9-gb1901cd

got this:

node> require('./jerk')
Error: print() has moved. Use require('sys') to bring it back.
    at node.js:11:11
    at Function.bind (native)
    at new Jerk (/home/josh/lulzbot/lib/Jerk/lib/jerk.js:11:26)
    at Object.<anonymous> (/home/josh/lulzbot/lib/Jerk/lib/jerk.js:8:12)
    at Module._compile (module:424:23)
    at Module._loadScriptSync (module:434:8)
    at Module.loadSync (module:306:10)
    at loadModule (module:251:12)
    at require (module:374:12)
    at cwdRequire (repl:26:10)

Honestly, I have no clue where to start with this one.

jfhbrook commented 14 years ago

I replaced the sys.print in js-IRC with console.log(sys.inspect()) but the same error is still there

MADDENING

gf3 commented 14 years ago

This is actually a V8 bug in the native Function#bind implementation, here's the issues here: http://github.com/v8/v8/commit/fcfec20146c12d454347a6e0d50727a0477d57f2#commitcomment-117306

So we're just waiting for node/v8 to clean that up.

jfhbrook commented 14 years ago

Awesome! Thanks.

gf3 commented 14 years ago

Fixed in ry/node@b2a2bb736b01dfcd909d2c9087135bc6cb3e2e15