summaryrefslogtreecommitdiff
path: root/luajit.go
diff options
context:
space:
mode:
Diffstat (limited to 'luajit.go')
-rw-r--r--luajit.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/luajit.go b/luajit.go
index 7439023..373beb1 100644
--- a/luajit.go
+++ b/luajit.go
@@ -217,6 +217,9 @@ func (l *Lua) PushAny(v any) error {
case float64:
v, _ := v.(float64)
l.PushFloatNumber(v)
+ case bool:
+ v, _ := v.(bool)
+ l.PushBoolean(v)
case map[string]any:
v, _ := v.(map[string]any)
err := l.PushObject(v)