mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
make V.js compile
This commit is contained in:
@ -46,6 +46,11 @@ fn types_to_c(types []Type, table &Table) string {
|
||||
sb.write(field.name)
|
||||
sb.writeln('; // $field.typ')
|
||||
}
|
||||
sb.writeln('
|
||||
constructor(obj) {
|
||||
obj && Object.assign(this, obj);
|
||||
}
|
||||
')
|
||||
sb.writeln('}\n')
|
||||
}
|
||||
return sb.str()
|
||||
|
Reference in New Issue
Block a user