- add type infos to VM error messages
- add 'Name' to UserFunction objects
- add 'expectErrorString' to VM tests
- replace vm.expectError() with vm.expectErrorString() to make it more explicit
- add source map info to VM error messages
- optimization in function calls
- add file/line/col info to compiler errors
- change stdlib module to be loaded from VM (instead of compiler) so they can be properly loaded after the source is compiled into binary
- VM can take builtin modules optionally
objects/builtin_json.go:
- Added function builtinFromJSON
objects/builtins.go:
- Added builtin function from_json
runtim/vm_builtin_test.go:
- Added tests for builtin function from_json
objects/builtin_json.go:
- Added function builtinToJSON
objects/builtins.go:
- Added builtin function to_json
runtime/vm_builtin_test.go
- Added tests for builtin function to_json