Skip to content

Commit 206c723

Browse files
committed
Java.super: do not throw on non-JavaAdapter values.
1 parent 04f809d commit 206c723

File tree

1 file changed

+1
-1
lines changed
  • graal-js/src/com.oracle.truffle.js/src/com/oracle/truffle/js/builtins

1 file changed

+1
-1
lines changed

graal-js/src/com.oracle.truffle.js/src/com/oracle/truffle/js/builtins/JavaBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ protected Object superAdapter(Object adapter) {
542542
try {
543543
return InteropLibrary.getUncached().readMember(adapter, "super");
544544
} catch (UnsupportedMessageException | UnknownIdentifierException e) {
545-
throw Errors.createTypeErrorInteropException(adapter, e, null, this);
545+
return Undefined.instance;
546546
}
547547
}
548548
}

0 commit comments

Comments
 (0)