Make compiled bindings const

This commit is contained in:
Emi Simpson 2024-03-15 17:17:15 -04:00
parent 666488ce0f
commit d0ebd8cfa5
Signed by: Emi
GPG Key ID: A12F2C2FFDC3D847
1 changed files with 1 additions and 1 deletions

2
ir.py
View File

@ -32,7 +32,7 @@ class ReplHole:
def render(self) -> str:
return '\n'.join(
f'{var_name} = ({var_expr.codegen()});'
f'const {var_name} = ({var_expr.codegen()});'
for (var_name, var_expr) in self.val_bindings
)