Whole file

terryyin/lizard

The author described this change as Fix dot-property field assignment swallowing next class method. It counts as a record because the checks below fail on the code as it stood at 57e1ac296 and pass on a19185f73, with nothing else changed between the two runs.

Fix saved2026-04-22
Sharing licenceMIT · LICENSE.txt
Change size+1 0

What the code was meant to do, written into the code itself as a save note

Fix dot-property field assignment swallowing next class method

The change

348348 self._static_seen = False
349349 self._async_seen = False
350350 self._in_prop_value = False
351+ self._prev_token = ''
351352
352353 if token == '`':
353354 self.next(self._state_template_literal)

The check that tells the two apart

failpass·test/test_languages/testES6.py::Test_ES6_dot_field_assignment::test_chained_dot_field_assignment
failpass·test/test_languages/testES6.py::Test_ES6_dot_field_assignment::test_dot_field_assignment
failpass·test/test_languages/testES6.py::Test_ES6_dot_field_assignment::test_multiple_dot_field_assignments

Check file test/test_languages/testES6.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.

Origin and history

The code before it57e1ac296e2b17b86cd9b5f10cdd56878ced6157
Broken version dated2026-04-22
Modulelizard_languages.typescript
Units changedTypeScriptStates
Fingerprintbc9515df977796e5
Checked2026-08-18 by goldset/0.1

Every field above is generated by our program. None of it is written by hand.

Other bugs found in terryyin/lizard