···421421 updates if the constructor definition has a positional field defined after
422422 labelled fields.
423423 ([Hari Mohan](https://gituhub.com/seafoamteal))
424424+425425+- Fixed invalid JavaScript code generation when ints or floats had prefixed `0`s
426426+ before and after an `_` (e.g. `000_001`).
···24642464 value
24652465 };
2466246624672467- let value = value.trim_start_matches('0');
24672467+ let value = value.trim_start_matches(['0', '_']);
24682468 if value.is_empty() {
24692469 out.push('0');
24702470 }
24712471-24722472- // If the number starts with a `0` then an underscore, the `0` will be stripped,
24732473- // leaving the number to look something like `_1_2_3`, which is not valid syntax.
24742474- // Therefore, we strip the `_` to avoid this case.
24752475- let value = value.trim_start_matches('_');
2476247124772472 out.push_str(value);
24782473···24892484 };
24902485 let value = value.trim_start_matches(['+', '-'].as_ref());
2491248624922492- let value = value.trim_start_matches('0');
24872487+ let value = value.trim_start_matches(['0', '_']);
24932488 if value.starts_with(['.', 'e', 'E']) {
24942489 out.push('0');
24952490 }