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
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:
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: