mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-15 16:33:40 +00:00
compiler,runtime: support operations on nil map
The index expression and delete keyword are valid on nil maps, so the runtime must be modified to support this.
This commit is contained in:
Vendored
+1
@@ -50,6 +50,7 @@ lookup with comma-ok: eight 8 true
|
||||
lookup with comma-ok: nokey 0 false
|
||||
false true 2
|
||||
true false 0
|
||||
nilmap: 0
|
||||
4
|
||||
42
|
||||
4321
|
||||
|
||||
Reference in New Issue
Block a user