diff --git a/vlib/v/gen/js/js.v b/vlib/v/gen/js/js.v index 391d81c6f5..1a75273c53 100644 --- a/vlib/v/gen/js/js.v +++ b/vlib/v/gen/js/js.v @@ -1045,6 +1045,7 @@ fn (mut g JsGen) gen_hash_stmt(it ast.HashStmt) { } fn (mut g JsGen) gen_struct_decl(node ast.StructDecl) { + if node.name.starts_with('JS.') { return } g.doc.gen_fac_fn(node.fields) g.write('function ${g.js_name(node.name)}({ ') for i, field in node.fields {