Fix up Meta.eval(_).

- Made it use primitives instead of foreign functions.
- This fixed an issue where the interpreter loop was running re-entrantly.
- Which in turn fixed a GC bug.
- Report a runtime error if the argument isn't a string.
- Report a runtime error if the source doesn't compile.
This commit is contained in:
Bob Nystrom
2015-04-03 21:22:58 -07:00
parent 9ffdc09672
commit 82ce1d8be9
12 changed files with 282 additions and 228 deletions
+1 -3
View File
@@ -1,3 +1 @@
class Meta {
foreign static eval(source)
}
class Meta {}