Add original field name to wasm macro.

This commit is contained in:
Tom Alexander
2023-12-25 12:32:35 -05:00
parent bbb9ec637a
commit eb51bdfe2f
59 changed files with 96 additions and 15 deletions

View File

@@ -18,10 +18,17 @@ pub(crate) struct WasmBold<'s> {
phantom: PhantomData<&'s ()>,
}
to_wasm!(WasmBold<'s>, Bold<'s>, wasm_context, standard_properties, {
Ok(WasmBold {
standard_properties,
children: Vec::new(),
phantom: PhantomData,
})
});
to_wasm!(
WasmBold<'s>,
Bold<'s>,
original,
wasm_context,
standard_properties,
{
Ok(WasmBold {
standard_properties,
children: Vec::new(),
phantom: PhantomData,
})
}
);