Closed trenttobler closed 2 years ago
There also appears to be a weird parsing discrepancy (possibly related) with these two expressions (same context as above):
const hasSequenceExpression = jsep('x => (() => x + 1)`);
const noSequenceExpression = jsep('() => x + 1');
I'm not exactly sure why SequenceExpression type is included in the first expression, but not the second, as I think they should be in a similar context (the body of the lambda, vs. starting the expression).
Thank you for the test case @trenttobler and I can reproduce the error when assigning an arrow function. I'll try to take a look sometime over the next week. 🙂
:tada: This issue has been resolved in version @jsep-plugin/arrow-v1.0.2-beta.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
:tada: This issue has been resolved in version @jsep-plugin/arrow-v1.0.2 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Context / versions:
Code sample:
Thrown error:
This same expression works in javascript:
This package and plugin system has been very useful and easy to work with. Any thoughts or ability to fix the above?