mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-26 19:45:54 +03:00
Fix onerror function in headless mode
Otherwise we don't see any output!
This commit is contained in:
parent
3236bac3f6
commit
bc01d6cd61
@ -489,7 +489,7 @@ impl Project {
|
||||
|
||||
if self.headless {
|
||||
runjs.push_str("
|
||||
function onerror(error) {
|
||||
function onerror(e) {
|
||||
const errors = document.getElementById('error');
|
||||
let content = `exception: ${e.message}\\nstack: ${e.stack}`;
|
||||
errors.innerHTML = `<pre>${content}</pre>`;
|
||||
|
Loading…
Reference in New Issue
Block a user