mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-16 20:28:04 +01:00
Mainly to get rid of one top level directory. But this will also be useful when there are tests of the embedding API.
8 lines
159 B
Plaintext
8 lines
159 B
Plaintext
var a = {1: 1, 2: 2, 3: 3}
|
|
a.clear()
|
|
IO.print(a) // expect: {}
|
|
IO.print(a.count) // expect: 0
|
|
|
|
// Returns null.
|
|
IO.print({1: 2}.clear()) // expect: null
|