mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +01:00
add len() for i8 and i16 arrays
This commit is contained in:
parent
8c1792329e
commit
724ead3742
@ -60,6 +60,16 @@ public abstract class NonGC {
|
|||||||
return null; // for compiler
|
return null; // for compiler
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Import( js = "(a) => a.length" )
|
||||||
|
static int array_len_i8( Object array ) {
|
||||||
|
return 0; // for compiler
|
||||||
|
}
|
||||||
|
|
||||||
|
@Import( js = "(a) => a.length" )
|
||||||
|
static int array_len_i16( Object array ) {
|
||||||
|
return 0; // for compiler
|
||||||
|
}
|
||||||
|
|
||||||
@Import( js = "(a) => a.length" )
|
@Import( js = "(a) => a.length" )
|
||||||
static int array_len_i32( Object array ) {
|
static int array_len_i32( Object array ) {
|
||||||
return 0; // for compiler
|
return 0; // for compiler
|
||||||
|
Loading…
x
Reference in New Issue
Block a user