aboutsummaryrefslogtreecommitdiffstats
path: root/src/bytecode/objects.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bytecode/objects.c')
-rw-r--r--src/bytecode/objects.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bytecode/objects.c b/src/bytecode/objects.c
index 515a19d..14dc057 100644
--- a/src/bytecode/objects.c
+++ b/src/bytecode/objects.c
@@ -23,10 +23,10 @@ make_symbol(StringView sv) {
23} 23}
24 24
25Object 25Object
26make_lambda(void) { 26make_lambda(StringView name) {
27 Object obj = { 27 Object obj = {
28 .type = OBJ_TYPE_LAMBDA, 28 .type = OBJ_TYPE_LAMBDA,
29 .chunk = chunk_init(), 29 .chunk = chunk_init(name),
30 }; 30 };
31 return obj; 31 return obj;
32} 32}