From 146083565c6f6cf0d49f2deca85fa4736a333839 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Thu, 28 Nov 2024 15:24:41 +0100 Subject: [PATCH] jso: add binding to Error.cause property --- jso/apis/src/main/java/org/teavm/jso/core/JSError.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jso/apis/src/main/java/org/teavm/jso/core/JSError.java b/jso/apis/src/main/java/org/teavm/jso/core/JSError.java index 72136dab7..1f59954e2 100644 --- a/jso/apis/src/main/java/org/teavm/jso/core/JSError.java +++ b/jso/apis/src/main/java/org/teavm/jso/core/JSError.java @@ -51,6 +51,9 @@ public class JSError implements JSObject { @JSProperty public native String getName(); + @JSProperty + public native JSError getCause(); + @JSFunctor public interface TryClause extends JSObject { T run();