diff --git a/jso/apis/src/main/java/org/teavm/jso/browser/Window.java b/jso/apis/src/main/java/org/teavm/jso/browser/Window.java index bbd12ceff..8c1f4b872 100644 --- a/jso/apis/src/main/java/org/teavm/jso/browser/Window.java +++ b/jso/apis/src/main/java/org/teavm/jso/browser/Window.java @@ -93,7 +93,7 @@ public abstract class Window implements JSObject, WindowEventTarget, StorageProv return prompt(message, ""); } - @JSBody(params = { "message", "defaultValue" }, script = "prompt(message, defaultValue);") + @JSBody(params = { "message", "defaultValue" }, script = "return prompt(message, defaultValue);") public static native String prompt(String message, String defaultValue); @JSBody(params = { "handler", "delay" }, script = "return setTimeout(handler, delay);")