mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-16 20:28:04 +01:00
- Rename IO.write -> IO.print. - Make IO.write not print a newline. - Support \u Unicode escapes in strings.
13 lines
142 B
Plaintext
13 lines
142 B
Plaintext
var f = null
|
|
|
|
class Foo {
|
|
method(param) {
|
|
f = fn {
|
|
IO.print(param)
|
|
}
|
|
}
|
|
}
|
|
|
|
(new Foo).method("param")
|
|
f.call // expect: param
|