Skip to content
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

const没有达到预期效果 #14

Open
gaoachao opened this issue Oct 15, 2022 · 0 comments
Open

const没有达到预期效果 #14

gaoachao opened this issue Oct 15, 2022 · 0 comments

Comments

@gaoachao
Copy link

const a = 1;a = 2;run()的时候不会报错,原因:
AssignmentExpressionOperatortraverseMap内部
"=": (value, v) => value instanceof MemberValue ? (value.obj[value.prop] = v) : (value.value = v),
应该写成:(value.set(v)),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant