ref: 9f3e141d805cddec7cce1fae38373a82c61e3300
parent: ac25ac54fa79dad253cbc156c22c6685013f8499
author: Tor Andersson <[email protected]>
date: Thu Jun 25 09:29:42 EDT 2020
Fix typo in lexlinecomment where it did not detect EOF properly.
--- a/jslex.c
+++ b/jslex.c
@@ -228,7 +228,7 @@
static void lexlinecomment(js_State *J)
{
- while (J->lexchar && J->lexchar != '\n')
+ while (J->lexchar != EOF && J->lexchar != '\n')
jsY_next(J);
}