diff --git a/examples/demo/fetch.js b/examples/demo/fetch.js index e9b6701..1fcdba8 100644 --- a/examples/demo/fetch.js +++ b/examples/demo/fetch.js @@ -7,7 +7,7 @@ const test_get = async () => { const test_json = async () => { const test = await fetchJson('https://themackabu.dev/test.json'); - console.log(JSON.stringify(test)); + console.log(test); }; const test_post = async () => { diff --git a/src/ant.c b/src/ant.c index 674906f..755a429 100644 --- a/src/ant.c +++ b/src/ant.c @@ -1855,9 +1855,7 @@ continue_object_print:; if (desc) { if (desc->has_getter || desc->has_setter) { should_hide = true; - } else if (!desc->enumerable) { - should_hide = true; - } + } else if (!desc->enumerable) should_hide = true; } } @@ -21307,9 +21305,7 @@ void js_destroy(struct js *js) { js->errmsg = NULL; } - if (js->owns_mem) { - ANT_GC_FREE((void *)((uint8_t *)js - 0)); - } + if (js->owns_mem) ANT_GC_FREE((void *)((uint8_t *)js - 0)); } inline double js_getnum(jsval_t value) { return tod(value); }