Object array must be filled with NULL

This commit is contained in:
Volker Berlin 2019-09-02 18:07:00 +02:00
parent 617301b165
commit 425e14c6b6

View File

@ -43,7 +43,7 @@ public abstract class NonGC {
@Import( js = "(l) => new Float64Array(l)" )
native static double[] array_new_f64( int length );
@Import( js = "(l) => Object.seal(new Array(l))" )
@Import( js = "(l) => Object.seal(new Array(l).fill(null))" )
native static Object[] array_new_anyref( int length );
@Import( js = "(a) => a.length" )