stub out get_env for js

This commit is contained in:
Jeroen van Rijn
2025-06-13 18:00:30 +02:00
parent 3862555153
commit 8c8406cc4d
+5
View File
@@ -253,3 +253,8 @@ current_thread_id :: proc "contextless" () -> int {
lookup_env :: proc(key: string, allocator := context.allocator) -> (value: string, found: bool) { lookup_env :: proc(key: string, allocator := context.allocator) -> (value: string, found: bool) {
return "", false return "", false
} }
get_env :: proc(key: string, allocator := context.allocator) -> string {
value, _ := lookup_env(key, allocator)
return value
}