forked from Mirror/wren
WrenValue -> WrenHandle.
This commit is contained in:
11
test/api/handle.wren
Normal file
11
test/api/handle.wren
Normal file
@ -0,0 +1,11 @@
|
||||
class Handle {
|
||||
foreign static value=(value)
|
||||
foreign static value
|
||||
}
|
||||
|
||||
Handle.value = ["list", "of", "strings"]
|
||||
|
||||
// Make sure the handle lives through a GC.
|
||||
System.gc()
|
||||
|
||||
System.print(Handle.value) // expect: [list, of, strings]
|
||||
Reference in New Issue
Block a user