mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-12 20:41:24 +00:00
Better recognition of error type.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user