Window.confirm() should return value, fixed.

This commit is contained in:
Marcin Olawski 2017-06-21 10:04:33 +02:00 committed by Alexey Andreev
parent 59e5c16b31
commit 42791964cc

View File

@ -82,10 +82,10 @@ public abstract class Window implements JSObject, WindowEventTarget, StorageProv
@JSBody(params = "message", script = "alert(message);") @JSBody(params = "message", script = "alert(message);")
public static native void alert(String message); public static native void alert(String message);
@JSBody(params = "message", script = "confirm(message);") @JSBody(params = "message", script = "return confirm(message);")
public static native boolean confirm(JSObject message); public static native boolean confirm(JSObject message);
@JSBody(params = "message", script = "confirm(message);") @JSBody(params = "message", script = "return confirm(message);")
public static native boolean confirm(String message); public static native boolean confirm(String message);
public static String prompt(String message) { public static String prompt(String message) {