mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
js: add more tests to builtin/js and implement more builtin functions (#12049)
This commit is contained in:
@@ -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; } }
|
||||
|
Reference in New Issue
Block a user