summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tools/js-wrapper.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/js-wrapper.h b/src/tools/js-wrapper.h
index 3a1a1aa4a..9568bccc0 100644
--- a/src/tools/js-wrapper.h
+++ b/src/tools/js-wrapper.h
@@ -60,7 +60,8 @@ static std::string generateJSWrapper(Module& wasm) {
" ret += Number(x).toString();\n"
" break;\n"
" }\n"
- " default: throw 'what?';\n"
+ " // For anything else, just print the type.\n"
+ " default: ret += type; break;\n"
" }\n"
" return ret;\n"
"}\n"