mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 18:20:51 +00:00
Better recognition of error type.
This commit is contained in:
parent
5f2ba3f98e
commit
b0906fddba
@ -417,7 +417,7 @@ impl<'a> Context<'a> {
|
||||
}
|
||||
// errors
|
||||
if (val instanceof Error) {
|
||||
return `${className}: ${val.message}\n${val.stack}`;
|
||||
return `${val.name}: ${val.message}\n${val.stack}`;
|
||||
}
|
||||
// TODO we could test for more things here, like `Set`s and `Map`s.
|
||||
return className;
|
||||
|
Loading…
x
Reference in New Issue
Block a user