Open skerit opened 10 years ago
The code in this function:
function t() { var csvPath = '/tmp/contacts.csv'; parser = new ContactDocParser(csvPath, cont()); }
gets compiled to
function t() { var csvPath = '/tmp/contacts.csv'; parser = new ContactDocParser(csvPath, cont()); } /* Generated by Continuation.js v0.1.4 */
It just ignores it. When I remove the new statement, it does replace the cont()
new
Sorry but I do not think this makes sense because it is seldom seen that a callback function is pass to a constructor of object in JavaScript. Could you tell me why this syntax is needed?
Thank you
The code in this function:
gets compiled to
It just ignores it. When I remove the
new
statement, it does replace the cont()