mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
js: support JS interfaces (#12426)
This commit is contained in:
parent
015cfdb49f
commit
a4c57ba56e
12 changed files with 245 additions and 205 deletions
|
@ -147,7 +147,7 @@ pub fn (a array) repeat(count int) array {
|
|||
}
|
||||
}
|
||||
|
||||
#function makeEmptyArray() { return new array(new array_buffer({})); }
|
||||
#function makeEmptyArray() { return new array(new array_buffer({ arr: [], len: new int(0), index_start: new int(0), cap: new int(0) })); }
|
||||
#function makeEmtpyJSArray() { return new Array(); }
|
||||
|
||||
fn JS.makeEmptyArray() array
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue