AssertionError is behind TruffleBoundary

This commit is contained in:
Pavel Marek 2024-11-14 18:58:15 +01:00
parent db225ed0a6
commit 06d1d4c950

View File

@ -1,5 +1,6 @@
package org.enso.interpreter.runtime.data; package org.enso.interpreter.runtime.data;
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
import com.oracle.truffle.api.TruffleLanguage; import com.oracle.truffle.api.TruffleLanguage;
import com.oracle.truffle.api.interop.InteropLibrary; import com.oracle.truffle.api.interop.InteropLibrary;
import com.oracle.truffle.api.interop.TruffleObject; import com.oracle.truffle.api.interop.TruffleObject;
@ -21,6 +22,7 @@ public abstract class EnsoObject implements TruffleObject {
} }
@ExportMessage @ExportMessage
@TruffleBoundary
public Object toDisplayString(boolean allowSideEffects) { public Object toDisplayString(boolean allowSideEffects) {
// Not implemented on purpose - should be implemented by subclasses. // Not implemented on purpose - should be implemented by subclasses.
throw new AssertionError("unimplemented"); throw new AssertionError("unimplemented");