v7
v7 copied to clipboard
Embedded JavaScript engine for C/C++
var strJSon='{"sex":"\\u00e7\\u0094\\u00b7"}'; print(strJSon); var obj = JSON.parse(strJSon); print(JSON.stringify(obj)); ============================== {"sex":"\u00e7\u0094\u00b7"} {"sex":"\u00c3\u00a7\u00c2\u0094\u00c2\u00b7"}
The code is: ``` javascript (function(global) { var Player = function(num) { this.num = num; }; Object.defineProperty(Player.prototype, 'number', { get: function() { return this.num+1; }, set: function(value) { this.num =...
I am unable to compile the v7 binary provided in the makefile and i am observing linker errors. `Undefined symbols for architecture x86_64: "_mg_mk_str", referenced from: _mg_next_comma_list_entry in v7-fb9d22.o _mg_next_comma_list_entry_n...
https://docs.cesanta.com/v7/dev This link seems to be broken. It'd be nice to have that fixed, as I don't seem to find any other way of finding out how I could implement...
Trying to build this in the Arduino IDE, and with Platform.io, for an ESP8266. I brought the two v7 files in, set CS_PLATFORM to CS_P_ESP_LWIP and CS_BUILD_PROFILE to minimal. But...
Some values can't be passed directly to a function. I was trying to pass `true` as the first argument to a function, but it got turned into `undefined`. From what...
v7_interrupt is not affecting anymore the code. Is there instead any another function available or are any plan to restore it's functionality?
include #include "v7.h" int main(void) { struct v7* v7 = v7_create(); v7_val_t a = v7_mk_array(v7); v7_array_push(v7, a, v7_mk_number(v7, 0)); v7_array_push(v7, a, v7_mk_number(v7, 1)); v7_array_push(v7, a, v7_mk_number(v7, 2)); printf("%d\n", v7_array_length(v7, a));...
could you give me one example about ajax?
Hello, I was using American Fuzzy Lop (afl-fuzz) to fuzz input the v7 program. Is fixing the crashes from these input files something you're interested in? The input files can...