jso apis: fix declaration in IndexedDB API

Fix #874
This commit is contained in:
Alexey Andreev 2023-12-12 09:39:36 +01:00
parent facf3c496f
commit 18e92a49e3

View File

@ -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();