From 56ae814cbc5ccfa738a44edb1684b0409fc988fd Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Wed, 1 Jul 2020 19:37:18 +0300 Subject: [PATCH] gen: fix js main entry point generation --- vlib/v/gen/js/js.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/gen/js/js.v b/vlib/v/gen/js/js.v index d916187b03..16910dc379 100644 --- a/vlib/v/gen/js/js.v +++ b/vlib/v/gen/js/js.v @@ -811,7 +811,7 @@ fn fn_has_go(it ast.FnDecl) bool { fn (mut g JsGen) gen_method_decl(it ast.FnDecl) { g.fn_decl = &it has_go := fn_has_go(it) - is_main := it.name == 'main' + is_main := it.name == 'main.main' if is_main { // there is no concept of main in JS but we do have iife g.writeln('/* program entry point */')