This commit is contained in:
root
2026-06-14 01:37:39 +00:00
parent 6bb4f7f0ad
commit 15e8d092bc
3 changed files with 15 additions and 5 deletions
-2
View File
@@ -541,8 +541,6 @@ enum WasmResolveKind {
WASM_RESOLVE_EXISTS = 2,
WASM_RESOLVE_ONCE = 3,
WASM_RESOLVE_CLI = 4,
WASM_RESOLVE_WEBSOCKET = 5,
WASM_RESOLVE_SERVE_HTTP = 6,
};
static s32 wasm_resolve_target(String target, s32 kind, String* resolved_out = 0)
+1 -3
View File
@@ -389,7 +389,7 @@ public:
// resolve-kind values shared with the guest core (src/wasm/core.cpp)
// must match WasmResolveKind in src/wasm/core.cpp
enum ResolveKind { RESOLVE_COMPONENT = 0, RESOLVE_RENDER = 1, RESOLVE_EXISTS = 2, RESOLVE_ONCE = 3,
RESOLVE_CLI = 4, RESOLVE_WEBSOCKET = 5, RESOLVE_SERVE_HTTP = 6 };
RESOLVE_CLI = 4 };
String birth()
{
@@ -1071,8 +1071,6 @@ private:
String symbol = kind == RESOLVE_RENDER ? "__uce_render"
: kind == RESOLVE_ONCE ? "__uce_once"
: kind == RESOLVE_CLI ? "__uce_cli"
: kind == RESOLVE_WEBSOCKET ? "__uce_websocket"
: kind == RESOLVE_SERVE_HTTP ? "__uce_serve_http"
: "__uce_component";
if(render_name != "")
symbol += "_" + sanitize_symbol_suffix(render_name);