js: add more tests to builtin/js and implement more builtin functions (#12049)

This commit is contained in:
playX 2021-10-03 10:08:21 +03:00 committed by GitHub
parent 129c81f34d
commit 9145cd66ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 2384 additions and 18 deletions

View file

@ -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; } }