You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
static-module has a special case for function arguments as callbacks:
readFile('xyz',function(){})
A possible solution may be to have a static-module option or a method like staticModule.ast that passes the parsed AST nodes to functions, instead of statically evaluated values. Projects like cwise could then use static-eval to selectively evaluate strings and other primitive types, and stringify the AST for function arguments using escodegen.
static-eval doesn't support function expressions like the
body
option in:I think because of this patch browserify/static-eval#18
static-module has a special case for function arguments as callbacks:
A possible solution may be to have a static-module option or a method like
staticModule.ast
that passes the parsed AST nodes to functions, instead of statically evaluated values. Projects like cwise could then use static-eval to selectively evaluate strings and other primitive types, and stringify the AST for function arguments using escodegen.Originally posted by @goto-bus-stop in #48 (comment)
The text was updated successfully, but these errors were encountered: