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
Unfortunately vm.Script compiles a program, and it makes more sense for us to limit the result to an expression. We need to
wrap the expression in parens to make sure that ambiguous statements such as {} are correctly interpreted as expressions (and not a block statement) and that semicolons are not allowed
parse the expression using EsprimaAcorn (because it supports preserveParens) to restrict programs to individual expression statements
The text was updated successfully, but these errors were encountered:
Unfortunately vm.Script compiles a program, and it makes more sense for us to limit the result to an expression. We need to
{}
are correctly interpreted as expressions (and not a block statement) and that semicolons are not allowedEsprimaAcorn (because it supports preserveParens) to restrict programs to individual expression statementsThe text was updated successfully, but these errors were encountered: