From 516f211d477c12dd0fc3a0868e8e6fb7169a2aae Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Mon, 30 Nov 2015 20:01:08 +0300 Subject: [PATCH] Fix JSString.isInstance --- jso/apis/src/main/java/org/teavm/jso/core/JSString.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jso/apis/src/main/java/org/teavm/jso/core/JSString.java b/jso/apis/src/main/java/org/teavm/jso/core/JSString.java index da4446f50..bca4ee593 100644 --- a/jso/apis/src/main/java/org/teavm/jso/core/JSString.java +++ b/jso/apis/src/main/java/org/teavm/jso/core/JSString.java @@ -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); }