-
Notifications
You must be signed in to change notification settings - Fork 818
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【BUG】不以分号结尾的let 语句执行报错 #551
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
AviatorEvaluator.execute("let a = 3", env); // 本意是想通过脚本往env里put一个变量
执行报错,aviator版本5.3.3
Exception in thread "main" com.googlecode.aviator.exception.ExpressionSyntaxErrorException: Syntax error: missing ';' for let statement at 9, lineNumber: 1, token : null,
while parsing expression:
let a = 3^^^
at com.googlecode.aviator.AviatorEvaluatorInstance.innerCompile(AviatorEvaluatorInstance.java:1545)另外能否提供一个全局选项控制变量必须经过let显式声明后才能使用?类似visual basic里的Option Explicit,无需声明很容易误用:
let date = now();
data = data + 1 // 拼写错误,执行报错语句不够清晰易懂,如果能提示data未声明会好很多
The text was updated successfully, but these errors were encountered: