Initial demutate impl
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user