2012-07-30 60 views
0

我想实现一个Node.JS REPL的评估。我收到错误TypeError: Property 'eval' of object #<REPLServer> is not a function。这是我的源代码:Node.js REPL eval

repl.start("> ", socket, socket, true, function(cmd, context, filename, callback){ 
etc... 
+0

见[节点REPL EVAL回调] [1]的答案。这解释了你如何使用第一种方法。 [1]:http://stackoverflow.com/questions/10713247/node-repl-eval-callback – barcrab 2013-01-17 11:30:30

回答