diff --git a/native.js b/native.js index 451671d2..1def4679 100644 --- a/native.js +++ b/native.js @@ -465,7 +465,7 @@ Native["com/sun/cldc/io/ResourceInputStream.open.(Ljava/lang/String;)Ljava/lang/ var obj = null; if (data) { obj = CLASSES.newObject(CLASSES.java_lang_Object); - obj.data = Uint8Array(data); + obj.data = new Uint8Array(data); obj.pos = 0; } stack.push(obj);