mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-26 07:01:33 +00:00
Enable DynamicFunc
for closures with environment.
This commit is contained in:
@ -349,11 +349,6 @@ impl<'a> DynamicFunc<'a> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Disable "fat" closures for possible future changes.
|
|
||||||
if mem::size_of::<F>() != 0 {
|
|
||||||
unimplemented!("DynamicFunc with captured environment is not yet supported");
|
|
||||||
}
|
|
||||||
|
|
||||||
let mut builder = TrampolineBufferBuilder::new();
|
let mut builder = TrampolineBufferBuilder::new();
|
||||||
let ctx: Box<PolymorphicContext> = Box::new(PolymorphicContext {
|
let ctx: Box<PolymorphicContext> = Box::new(PolymorphicContext {
|
||||||
arg_types: signature.params().to_vec(),
|
arg_types: signature.params().to_vec(),
|
||||||
|
Reference in New Issue
Block a user