diff options
Diffstat (limited to 'src/bytecode/objects.c')
-rw-r--r-- | src/bytecode/objects.c | 4 |
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 | ||
25 | Object | 25 | Object |
26 | make_lambda(void) { | 26 | make_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 | } |