package js_console foreign import "console_api" @(default_calling_convention="contextless") foreign console_api { // you can pass values to the JS side too. trace :: proc(str: string) --- debug :: proc(str: string) --- info :: proc(str: string) --- warn :: proc(str: string) --- error :: proc(str: string) --- }