Symbolize start trap traces (#1437)

Make sure we've registered the frame info early enough so traps during
instantiation give frames as well.
This commit is contained in:
Alex Crichton
2020-03-30 17:02:01 -05:00
committed by GitHub
parent bc462404b3
commit bc5568f4b3
2 changed files with 34 additions and 1 deletions

View File

@@ -123,6 +123,7 @@ impl Instance {
}
}
module.register_frame_info();
let config = store.engine().config();
let instance_handle = instantiate(
config,
@@ -141,7 +142,6 @@ impl Instance {
export,
));
}
module.register_frame_info();
Ok(Instance {
instance_handle,
module: module.clone(),