projects
/
onyx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47d7a32
)
fixed: silly eror in `#export` duplication reporting
author
Brendan Hansen
<brendan.f.hansen@gmail.com>
Sat, 23 Dec 2023 04:49:58 +0000
(22:49 -0600)
committer
Brendan Hansen
<brendan.f.hansen@gmail.com>
Sat, 23 Dec 2023 04:49:58 +0000
(22:49 -0600)
compiler/src/wasm_emit.c
patch
|
blob
|
history
diff --git
a/compiler/src/wasm_emit.c
b/compiler/src/wasm_emit.c
index 51f588310b0298b323cd2e5e8ad76d2d4282714c..58fce47facc11308194ff0cf9fbc29ba0ee32b8c 100644
(file)
--- a/
compiler/src/wasm_emit.c
+++ b/
compiler/src/wasm_emit.c
@@
-4612,7
+4612,7
@@
static void emit_export_directive(OnyxWasmModule* mod, AstDirectiveExport* expor
token_toggle_end(export->export_name);
if (shgeti(mod->exports, export->export_name->text) != -1) {
- onyx_
errors_print
(export->token->pos, Error_Critical, "Duplicate export name, '%s'.", export->export_name->text);
+ onyx_
report_error
(export->token->pos, Error_Critical, "Duplicate export name, '%s'.", export->export_name->text);
token_toggle_end(export->export_name);
return;
}