Releases: cesanta/v7
Releases · cesanta/v7
3.0 "Judicious Pedant", 2016-05-19
- Error reporting improved significantly:
- Added complete stack traces, with filenames and line numbers
- When non-callable value is called, v7 gives some context instead of plain "value is not a function"
- All build flags are documented
- C API changed:
- Getting C entities from JS values (
v7_val_t
): v7_to_number()
->v7_get_double()
v7_to_boolean()
->v7_get_bool()
v7_to_cstring()
->v7_get_cstring()
v7_get_string_data()
->v7_get_string()
v7_to_foreign()
->v7_get_ptr()
- These functions now take the v7 argument:
v7_mk_number()
v7_get_double()
v7_mk_boolean()
v7_get_bool()
v7_mk_foreign()
v7_get_ptr()
- Added
v7_get_int()
v7_mk_undefined()
is deprecated, use the macroV7_UNDEFINED
insteadv7_mk_null()
is deprecated, use the macroV7_NULL
instead
- Getting C entities from JS values (
- Added MSP432 CCS projects for v7 examples
- Implemented v7 user data and destructors
- Implemented
Object.isFrozen()
andObject.isSealed()
- Bug fixes and refactoring
2.0 "Handsome Donkey", 2016-03-08
- Parser's stack usage does not grow as expression nesting grows, it allows v7 to run in stack-constrained environment;
- Interpreter is reimplemented completely: instead of AST-based VM runtime with long jumps, the bytecode is generated and then evaluated. Again, it allowed to get rid of deep stack usage and make the whole runtime more straightforward;
- Freezing: the ability to take a snapshot of v7's RAM usage, and then put that snapshot in flash instead. This way, the whole standard library can reside in flash, therefore saving several kilobytes of RAM, which is very expensive on embedded devices;
- The ability to run from unmanaged (typically,
mmap
-ed) memory. This way, scripts can be precompiled, put in flash, and run straight from there. Again, it saves RAM; - API is cleaned up;
- Lots of bugfixes and stability improvements.
1.0 "Symmetric Susan", 2015-04-26
- Implemented hand-written tokenizer and parser
- Implemented AST-based VM runtime
- Implemented mark-and-sweep garbage collector
- Published examples
- Published documentation with API reference
- Standard Library is partially implemented. Unimplemented API:
- global:
decodeURI()
,decodeURIComponent()
- Object:
seal()
,freeze()
,isSealed()
,isFrozen()
- Function:
bind()
- Array:
concat()
,unshift()
,forEach()
,reduceRight()
- JSON:
replacer
argument instringify()
is ignored
- global:
- Auxiliary library is not implemented yet