mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Fix JSString.isInstance
This commit is contained in:
parent
ba54f82dc0
commit
516f211d47
|
@ -99,6 +99,6 @@ public abstract class JSString implements JSObject {
|
|||
|
||||
public abstract JSString trim();
|
||||
|
||||
@JSBody(params = "obj", script = "return typeof this === 'string';")
|
||||
@JSBody(params = "obj", script = "return typeof obj === 'string';")
|
||||
public static native boolean isInstance(JSObject obj);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user