ftp.v: fix compilation

pull/4340/head
Delyan Angelov 2020-04-10 22:52:12 +03:00
parent 4f74410125
commit fdac3a1f2e
2 changed files with 6 additions and 2 deletions

View File

@ -223,8 +223,9 @@ fn (ftp FTP) pasv() ?DTP {
return error('pasive mode not allowed') return error('pasive mode not allowed')
} }
dtp := new_dtp(data) dtp := new_dtp(data) or {
return error(err)
}
return dtp return dtp
} }

View File

@ -133,6 +133,9 @@ pub fn (x Expr) str() string {
SelectorExpr { SelectorExpr {
return '${it.expr.str()}.${it.field}' return '${it.expr.str()}.${it.field}'
} }
TypeOf {
return 'typeof(${it.expr.str()})'
}
CallExpr { CallExpr {
sargs := args2str(it.args) sargs := args2str(it.args)
if it.is_method { if it.is_method {