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:
Alex Crichton
2019-06-11 11:51:36 -07:00
parent 535aa3193c
commit 621fc9c440
4 changed files with 16 additions and 25 deletions

View File

@ -204,7 +204,7 @@ impl<'a, 'b> Js2Rust<'a, 'b> {
i = i,
val = val,
));
if arg.is_by_ref() || arg.is_clamped_by_ref() {
if arg.is_by_ref() {
if optional {
bail!("optional slices aren't currently supported");
}