BYVoid / continuation

JavaScript asynchronous Continuation-Passing Style transformation (deprecated).
Other
388 stars 42 forks source link

new statement is mistakenly parsed in cont()'d block #36

Open shankerwangmiao opened 9 years ago

shankerwangmiao commented 9 years ago
foo(cont());
d = (new a.b).c();

and the result is

foo(function (arguments) {
  d = new a.b().c();
}.bind(this, arguments));
/* Generated by Continuation.js v0.1.7 */
BYVoid commented 9 years ago

Thanks. This is a bug of the parser esprima or the code generator escodegen.