Skip to content

Commit

Permalink
Fix JSString.isInstance
Browse files Browse the repository at this point in the history
  • Loading branch information
konsoletyper committed Nov 30, 2015
1 parent ba54f82 commit 516f211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jso/apis/src/main/java/org/teavm/jso/core/JSString.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,6 @@ public final String stringValue() {

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);
}

0 comments on commit 516f211

Please sign in to comment.