continuation icon indicating copy to clipboard operation
continuation copied to clipboard

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

Open shankerwangmiao opened this issue 10 years ago • 1 comments

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 */

shankerwangmiao avatar Aug 25 '15 06:08 shankerwangmiao

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

BYVoid avatar Sep 10 '15 08:09 BYVoid