mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 14:18:42 +01:00
10 lines
279 B
Plaintext
10 lines
279 B
Plaintext
|
|
import "io" for File
|
||
|
|
|
||
|
|
// Don't store in a variable.
|
||
|
|
File.open("test/io/file/finalize.wren")
|
||
|
|
|
||
|
|
System.gc()
|
||
|
|
// We can't really test what the finalizer *does* from Wren, since the object
|
||
|
|
// is unreachable, but this at least ensures it doesn't crash.
|
||
|
|
|
||
|
|
System.print("ok") // expect: ok
|