add Char to js_interop malloc

This commit is contained in:
Nick Fisher
2025-06-02 12:15:35 +08:00
parent 12e2dca873
commit 0d5b42c908

View File

@@ -407,6 +407,8 @@ Pointer<T> allocate<T extends NativeType>(int count) {
switch (T) {
case PointerClass:
return malloc(count * 4);
case Char:
return malloc(count);
default:
throw Exception(T.toString());
}