mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-18 07:21:24 +00:00
Remove the Clamped
descriptor type
This is just a bit too general to work with and is pretty funky. Instead just tweak `Clamped<&[u8]>` to naturally generate a descriptor for `Ref(Slice(ClampedU8))`, requiring fewer gymnastics when interpreting descriptors.
This commit is contained in:
@ -82,7 +82,6 @@ fn process_closure_arguments(cfg: &mut Context, function: &mut Function) {
|
||||
| Descriptor::RefMut(d)
|
||||
| Descriptor::Option(d)
|
||||
| Descriptor::Slice(d)
|
||||
| Descriptor::Clamped(d)
|
||||
| Descriptor::Vector(d) => process_descriptor(cfg, d),
|
||||
Descriptor::Closure(c) => process_closure(cfg, c),
|
||||
Descriptor::Function(c) => process_function(cfg, c),
|
||||
|
Reference in New Issue
Block a user