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

Using "?." and "??" JS operators in action code blocks ? #63

Open
lowlighter opened this issue Apr 1, 2021 · 0 comments
Open

Using "?." and "??" JS operators in action code blocks ? #63

lowlighter opened this issue Apr 1, 2021 · 0 comments

Comments

@lowlighter
Copy link

Hi!

This is more a question rather a bug, is the ES version used by rules execution capped ?

I'm trying to use both optional chaining ?. and nullish coalescing operator ?? but I'm getting errors:

test
  : DEBUG                         -> yy.test?.hello ?? null //Tried with { return yy.test?.hello ?? null } too
  ;
error: Uncaught (in promise) Error: Could not parse jison grammar
Error:
production rule action code block does not compile: Line 45: Unexpected token .

  Erroneous area:
45:   : DEBUG                         -> yy.test?.hello ?? null
^^....................................^^^^^^^^^^^^^^^^^^^^^^^^^

Thanks for your work 🙂

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