[quickjs-devel] Re: Bug report: parse error in for loops

  • From: Fabrice Bellard <fabrice@xxxxxxxxxxx>
  • To: quickjs-devel@xxxxxxxxxxxxx
  • Date: Mon, 30 Sep 2019 16:17:34 +0200

Hi,

This bug was corrected. You should use the latest version.

Best regards,

Fabrice.

On 9/30/19 3:26 PM, b.walter@xxxxxxx wrote:

Hi!

QuickJS fails to parse this code:
for (var i = 2/1; i < 10; i++) {}

Error message:
expected 'of' or 'in' in for control expression

It seems that the '/' character prevents the loop from being properly parsed.

Best regards,
Benoit.


Other related posts: