mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-31 01:11:06 +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
|
// errors
|
||||||
if (val instanceof Error) {
|
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.
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
||||||
return className;
|
return className;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user