mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
builtin: vfmt every .v file, except vlib/builtin/int_test.v (#9448)
This commit is contained in:
parent
5d8b9b0151
commit
6bc9ef7373
19 changed files with 259 additions and 272 deletions
|
@ -8,13 +8,17 @@
|
|||
module builtin
|
||||
|
||||
pub struct JS.Number {}
|
||||
|
||||
pub struct JS.String {
|
||||
length JS.Number
|
||||
}
|
||||
|
||||
pub struct JS.Boolean {}
|
||||
|
||||
pub struct JS.Array {
|
||||
length JS.Number
|
||||
}
|
||||
|
||||
pub struct JS.Map {}
|
||||
|
||||
// Type prototype functions
|
||||
|
@ -29,6 +33,7 @@ fn (v JS.Map) toString() JS.String
|
|||
fn native_str_arr_len(arr []JS.String) int {
|
||||
len := 0
|
||||
#len = arr.length
|
||||
|
||||
return len
|
||||
}
|
||||
|
||||
|
@ -41,7 +46,9 @@ fn JS.isFinite(f64) bool
|
|||
fn JS.decodeURI(string) string
|
||||
fn JS.decodeURIComponent(string) string
|
||||
fn JS.encodeURI(string) string
|
||||
type EncodeURIComponentArg = string | f64 | bool
|
||||
|
||||
type EncodeURIComponentArg = bool | f64 | string
|
||||
|
||||
fn JS.encodeURIComponent(EncodeURIComponentArg) string
|
||||
fn JS.escape(string) string
|
||||
fn JS.unescape(string) string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue