-
Notifications
You must be signed in to change notification settings - Fork 192
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
Async function declaration with destructuring object is not supported #86
Comments
Thank you for reporting this issue. It looks like a bug in our parsing of async arrow functions. Note that we seem to parse
correctly, i.e., you can rewrite the code to avoid async arrow functions as a workaround (until we fix the issue). |
Unfortunately for me, I found that in 3rd party library and just extracted the minimal example from it. |
I was afraid that this will be the case. Is that library/ |
I have found it in our open source build framework |
Thanks for the report! @iamstolis has fixed the bug in 8f39670. |
Original commit message: M86-LTS: [compiler] Fix a bug in VisitSpeculativeIntegerAdditiveOp (cherry picked from commit 9313c4ce3f32ad81df1c65becccec7e129181ce3) No-Try: true No-Presubmit: true No-Tree-Checks: true Bug: chromium:1199345 Change-Id: I33bf71b33f43919fec4684054b5bf0a0787930ca Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2831478 Reviewed-by: Nico Hartmann <[email protected]> Commit-Queue: Georg Neis <[email protected]> Cr-Original-Commit-Position: refs/heads/master@{#74008} Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2848412 Commit-Queue: Artem Sumaneev <[email protected]> Reviewed-by: Victor-Gabriel Savu <[email protected]> Cr-Commit-Position: refs/branch-heads/8.6@{#86} Cr-Branched-From: a64aed2333abf49e494d2a5ce24bbd14fff19f60-refs/heads/8.6.395@{#1} Cr-Branched-From: a626bc036236c9bf92ac7b87dc40c9e538b087e3-refs/heads/master@{#69472} Refs: v8/v8@ab2340a PR-URL: nodejs/node#38481 Reviewed-By: Richard Lau <[email protected]>
In the given valid Node.JS example:
I get the error
While vanila
Node.JS v10.14.2
returns1bbb
Also, if I remove either
async
or default values of the destructuring object - it works in Graal like a charm.I am using
GraalVM CE 1.0.0-rc10
The text was updated successfully, but these errors were encountered: