From 1d2b16dde2e106a53c9c8ef06074027d64bf3e0b Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 15 Nov 2021 13:23:27 +0200 Subject: [PATCH] js: support `[if userflag?]` fn tags --- vlib/v/gen/js/fn.v | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vlib/v/gen/js/fn.v b/vlib/v/gen/js/fn.v index 0729edb574..57c70077d8 100644 --- a/vlib/v/gen/js/fn.v +++ b/vlib/v/gen/js/fn.v @@ -268,6 +268,9 @@ fn (mut g JsGen) method_call(node ast.CallExpr) { } fn (mut g JsGen) gen_call_expr(it ast.CallExpr) { + if it.should_be_skipped { + return + } if it.is_method && g.table.get_type_symbol(it.receiver_type).name.starts_with('JS.') { g.js_method_call(it) return