diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-09-02 21:51:48 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-09-02 21:51:48 +0200 |
commit | e810a0e763d363a6a8991bd6610608c024d9e787 (patch) | |
tree | 695abc00ae9c9439897b1f30954349dac5551e28 /eval.c | |
parent | ff2fde1752a1acd5fb6d784e8d462de4598e1810 (diff) |
ast, eval: add tagged object handling
In order to implement prototype chains later on, introduce a tagged object
value type and use it when processing object declarations.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -777,7 +777,7 @@ ut_execute_list(struct ut_state *state, struct ut_opcode *op) static struct json_object * ut_execute_object(struct ut_state *state, struct ut_opcode *op) { - struct json_object *obj = json_object_new_object(); + struct json_object *obj = ut_new_object(state, NULL); struct ut_opcode *key, *val; if (!obj) |