killme2008 / killme2008/aviatorscript

USE_USER_ENV_AS_TOP_ENV_DIRECTLY配置无效

Open
#670 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
5.2k
Forks
906
PR merge metrics
No merged PRs in 30d

Description

Image
按照描述,将此option设置为false时,表达式内部的赋值应该不会修改外层我们送入的参数,但是我发现在实际执行中最终赋值还是在外层生效了。

我们使用的版本是5.2.5

是否这个开关只能控制内部临时变量不体现?无法阻止已有数据的赋值行为?

如果我们希望阻止pass-in params的重新赋值行为,除了我们自己复制一份副本以外,有其他方法吗

Contributor guide

No contributing guide indexed for this repository

Research direction

No source files or tests are named. Start by reproducing the assignment behavior in AviatorScript 5.2.5 with USE_USER_ENV_AS_TOP_ENV_DIRECTLY=false and compare changes to passed-in parameters; done means the option's scope is confirmed and the reported behavior is fixed or clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.