mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v.gen.js: fix references and add iterator to map (#10938)
This commit is contained in:
@ -8,7 +8,9 @@ struct map {
|
||||
// Removes the mapping of a particular key from the map.
|
||||
[unsafe]
|
||||
pub fn (mut m map) delete(key voidptr) {
|
||||
#m.m.delete(key)
|
||||
#m.map.delete(key)
|
||||
}
|
||||
|
||||
pub fn (m &map) free() {}
|
||||
|
||||
#map.prototype[Symbol.iterator] = function () { return this.map[Symbol.iterator](); }
|
||||
|
Reference in New Issue
Block a user