From 18e92a49e3c0a203d8f0a64e2d72372acf65a0e8 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Tue, 12 Dec 2023 09:39:36 +0100 Subject: [PATCH] jso apis: fix declaration in IndexedDB API Fix #874 --- .../src/main/java/org/teavm/jso/indexeddb/IDBIndex.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/jso/apis/src/main/java/org/teavm/jso/indexeddb/IDBIndex.java b/jso/apis/src/main/java/org/teavm/jso/indexeddb/IDBIndex.java index a7d9372f8..524a13de0 100644 --- a/jso/apis/src/main/java/org/teavm/jso/indexeddb/IDBIndex.java +++ b/jso/apis/src/main/java/org/teavm/jso/indexeddb/IDBIndex.java @@ -16,6 +16,7 @@ package org.teavm.jso.indexeddb; import org.teavm.jso.JSBody; +import org.teavm.jso.JSByRef; import org.teavm.jso.JSObject; import org.teavm.jso.JSProperty; import org.teavm.jso.core.JSString; @@ -36,8 +37,9 @@ public abstract class IDBIndex implements JSObject, IDBCursorSource { } } - @JSBody(script = "return this;") - private native String[] unwrapStringArray(JSObject obj); + @JSBody(params = "obj", script = "return obj;") + @JSByRef + private static native String[] unwrapStringArray(JSObject obj); @JSProperty public abstract boolean isMultiEntry();