Initial demutate impl

This commit is contained in:
2026-09-07 13:13:03 +00:00
parent 457e63ad8e
commit be53d3a5e5
4 changed files with 337 additions and 3 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ use crate::{
/// The name quickjs gives the hoisted field initialiser.
const FIELDS_INIT: &str = "<class_fields_init>";
pub fn splice_ctor(fns: &mut [RegFn], class_seqs: &[Vec<ClassSequence>]) {
pub fn splice_ctors(fns: &mut [RegFn], class_seqs: &[Vec<ClassSequence>]) {
// Only a class with instance fields has an initialiser to splice.
for seq in class_seqs.iter().flatten() {
if let Some(field_init_fn) = seq.field_init_fn {