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
objects/builtin_convert.go
- Changed type check of in case of args[0] failure to always return
args[1] if set
runtime/vm_builtin_test.go:
- Changed tests according to changes in objects/builtin_convert.go
objects/builtin_convert.go: Added defaults to all builtin convert functions except
bool as this one returns false for undefined, instead of undefined.
runtime/vm_builtin_test.go: Added tests for checking default value
behaviour for builtin convert funcs