From 64e8aef1aa7669ea1b79d652c1b5c5f289fc7f3e Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Sat, 1 Apr 2023 14:32:40 -0500 Subject: [PATCH] fixed: js runtime --- core/runtime/platform/js/platform.onyx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/core/runtime/platform/js/platform.onyx b/core/runtime/platform/js/platform.onyx index fe745d65..9c16771b 100644 --- a/core/runtime/platform/js/platform.onyx +++ b/core/runtime/platform/js/platform.onyx @@ -1,12 +1,14 @@ package runtime.platform -use core +use core {package, *} use runtime use runtime { __runtime_initialize, Multi_Threading_Enabled, } +use main + // Platform supports Supports_Files :: false Supports_Directories :: false @@ -27,12 +29,12 @@ __start :: () { __runtime_initialize(); context.thread_id = 0; - #if (typeof (package main).main) == #type () -> void { - (package main).main(); + #if (typeof main.main) == #type () -> void { + main.main(); } else { args: [] cstr = .{ null, 0 }; - (package main).main(args); + main.main(args); } __flush_stdio(); -- 2.25.1