From 8c8406cc4d53336dd697655a621cadea0b4359c0 Mon Sep 17 00:00:00 2001 From: Jeroen van Rijn Date: Fri, 13 Jun 2025 18:00:30 +0200 Subject: [PATCH] stub out get_env for js --- core/os/os_js.odin | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/os/os_js.odin b/core/os/os_js.odin index 4d02eef7c..adb0f8061 100644 --- a/core/os/os_js.odin +++ b/core/os/os_js.odin @@ -252,4 +252,9 @@ current_thread_id :: proc "contextless" () -> int { lookup_env :: proc(key: string, allocator := context.allocator) -> (value: string, found: bool) { return "", false +} + +get_env :: proc(key: string, allocator := context.allocator) -> string { + value, _ := lookup_env(key, allocator) + return value } \ No newline at end of file