Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

求教 has no method 'start' 的错误是啥问题 #49

Closed
chatfeed opened this issue Jul 30, 2012 · 1 comment
Closed

求教 has no method 'start' 的错误是啥问题 #49

chatfeed opened this issue Jul 30, 2012 · 1 comment

Comments

@chatfeed
Copy link

求教哪里出错了


require('../lib/jscex.mysql').jscexify(db);
var testAsync = eval(Jscex.compile("async",function(){
    sql = 'select * from '+opt.db_name+'.'+tb_name+' limit 10';
    var ret = $await(db.queryAsync(sql));
}))

testAsync.start();

报错内容如下



node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
TypeError: Object function () {
                                                                         var _builder_$0 = Jscex.builders["async"];
                                                                         return _builder_$0.Start(this,
                                                                             _builder_$0.Delay(function () {
/*     sql = "select * from " + opt.db_name + "." + tb_name + " limit 10"; */    sql = "select * from " + opt.db_name + "." + tb_name + " limit 10";
/*     var ret = $await(db.queryAsync(sql)); */                                  return _builder_$0.Bind(db.queryAsync(sql), function (ret) {
                                                                                     return _builder_$0.Normal();
                                                                                 });
                                                                             })
                                                                         );
/* } */                                                              } has no method 'start'
    at Object. (/Users/chatfeed/webroot/SGRPG/ServerCode/server/nodejs/logic/test.js:50:11)
    at Module._compile (module.js:441:26)
    at Object..js (module.js:459:10)
    at Module.load (module.js:348:31)
    at Function._load (module.js:308:12)
    at Array.0 (module.js:479:10)
    at EventEmitter._tickCallback (node.js:192:40)

@JeffreyZhao
Copy link
Owner

Please send questions to the user group (jscex@googlegroups.com), thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants