mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-11-28 23:14:12 +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