Include Value::Other variant into Value::to_pointer() helper.

Closes #465
This commit is contained in:
Alex Orlenko
2024-10-04 10:33:56 +01:00
parent ae4897ab2e
commit a3ca95fc8f
+2 -1
View File
@@ -137,7 +137,8 @@ impl Value {
| Value::Table(Table(vref))
| Value::Function(Function(vref))
| Value::Thread(Thread(vref, ..))
| Value::UserData(AnyUserData(vref, ..)) => vref.to_pointer(),
| Value::UserData(AnyUserData(vref))
| Value::Other(vref) => vref.to_pointer(),
#[cfg(feature = "luau")]
Value::Buffer(crate::Buffer(vref)) => vref.to_pointer(),
_ => ptr::null(),