summaryrefslogtreecommitdiffhomepage
path: root/eval.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-09-02 21:51:48 +0200
committerJo-Philipp Wich <jo@mein.io>2020-09-02 21:51:48 +0200
commite810a0e763d363a6a8991bd6610608c024d9e787 (patch)
tree695abc00ae9c9439897b1f30954349dac5551e28 /eval.c
parentff2fde1752a1acd5fb6d784e8d462de4598e1810 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 68fda6e..88f3cee 100644
--- a/eval.c
+++ b/eval.c
@@ -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)