From bc01d6cd61950c2e0e35ada5b834e3d06eb30df4 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 6 Jul 2018 19:36:10 -0700 Subject: [PATCH] Fix onerror function in headless mode Otherwise we don't see any output! --- crates/test-project-builder/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/test-project-builder/src/lib.rs b/crates/test-project-builder/src/lib.rs index 9b14f659c..e953c9994 100644 --- a/crates/test-project-builder/src/lib.rs +++ b/crates/test-project-builder/src/lib.rs @@ -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 = `
${content}
`;