-
Notifications
You must be signed in to change notification settings - Fork 869
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
ARROW_FUNCTION position set error #303
Comments
Rhino supports arrow function? I try your code but only get a syntax error. |
支持的。可能你没有用到最新的版本? |
I am using the latest release 1.7.7.1 but cannot run any code with arrow function. How to enable this feature? |
不太清楚你怎么弄的,直接编译最新的是可以的。没有进行什么设置。 |
I finally found it was supported in the latest SNAPSHOT. |
@hyb1996 活捉autoJS作者2333 |
Since this seems to be fixed in master I'm closing this. |
@gbrail, I found it still not fixed. FunctionNode has wrong position. |
OK. I must be misunderstanding the problem then. Perhaps if you can give us
some code to reproduce it and describe what's incorrect then we can take a
look.
…On Tue, Nov 14, 2017 at 9:07 PM, nabice ***@***.***> wrote:
@gbrail <https://github.com/gbrail>, I found it still not fixed.
FunctionNode has wrong position.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#303 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAf0aypJeI-Sp4c7QDjwEat048qy7_9Dks5s2nGcgaJpZM4NF5a5>
.
|
file: a.js When a.js is parsed, setTimeout's first argument is a FucntionNode instance. Property
|
@nabice Well, there's one minor thing: I noticed that this way position will point at the opening parenthesis, while in case of parameters present (e.g. |
Yes, it does. |
JS Code:
setTimeout(() => {}, 0);
In org.mozilla.javascript.Parser.java, line 887,
params.position is -1, this will make a wrong FunctionNode position.
The text was updated successfully, but these errors were encountered: