Merge pull request #1589 from alexcrichton/clamped

Remove the `Clamped` descriptor type
This commit is contained in:
Alex Crichton
2019-06-11 14:53:15 -05:00
committed by GitHub
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");
}

View File

@ -165,7 +165,7 @@ impl<'a, 'b> Rust2Js<'a, 'b> {
},
));
if !arg.is_by_ref() && !arg.is_clamped_by_ref() {
if !arg.is_by_ref() {
self.prelude(&format!(
"\
{start}