mirror of
https://github.com/vlang/v.git
synced 2025-09-14 06:52:36 +03:00
js: add more tests to builtin/js and implement more builtin functions (#12049)
This commit is contained in:
parent
129c81f34d
commit
9145cd66ec
10 changed files with 2384 additions and 18 deletions
|
@ -25,3 +25,5 @@ pub fn (m &map) free() {}
|
|||
#res += '}'
|
||||
#return res;
|
||||
#}
|
||||
|
||||
#map.prototype.getOrSet = function (key, init) { if (this.map.has(key)) { return this.map.get(key); } else { this.map.set(key,init); return init; } }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue