Move Meta to a separate module.
Also cleaned up some of the code around loading the core module.
This commit is contained in:
@@ -1 +1,3 @@
|
||||
import "meta" for Meta
|
||||
|
||||
Meta.eval("!!") // expect runtime error: Could not compile source code.
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import "meta" for Meta
|
||||
|
||||
var y
|
||||
|
||||
Meta.eval("y = 2")
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
import "meta" for Meta
|
||||
|
||||
Meta.eval(123) // expect runtime error: Source code must be a string.
|
||||
|
||||
Reference in New Issue
Block a user