mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 14:18:42 +01:00
Adds a Meta library with an eval function for interpreting code inline.
This commit is contained in:
5
test/meta/eval_existing_scoped_variable.wren
Normal file
5
test/meta/eval_existing_scoped_variable.wren
Normal file
@ -0,0 +1,5 @@
|
||||
var y
|
||||
|
||||
Meta.eval("y = 2")
|
||||
|
||||
IO.print(y) // expect: 2
|
||||
Reference in New Issue
Block a user