From 176eb5282d8702e547cfc23b7110404cffe2f16f Mon Sep 17 00:00:00 2001 From: Lukas Stadler <lukas.stadler@oracle.com> Date: Fri, 24 Aug 2018 14:32:23 +0200 Subject: [PATCH] don't restrict values that can be set in RScope --- .../src/com/oracle/truffle/r/runtime/env/RScope.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/env/RScope.java b/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/env/RScope.java index 151036939b..80c9abdbe4 100644 --- a/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/env/RScope.java +++ b/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/env/RScope.java @@ -38,7 +38,6 @@ import com.oracle.truffle.api.interop.Resolve; import com.oracle.truffle.api.interop.TruffleObject; import com.oracle.truffle.api.interop.UnknownIdentifierException; import com.oracle.truffle.api.interop.UnsupportedMessageException; -import com.oracle.truffle.api.interop.UnsupportedTypeException; import com.oracle.truffle.api.nodes.Node; import com.oracle.truffle.r.runtime.ArgumentsSignature; import com.oracle.truffle.r.runtime.RArguments; @@ -46,7 +45,6 @@ import com.oracle.truffle.r.runtime.RInternalError; import com.oracle.truffle.r.runtime.context.RContext; import com.oracle.truffle.r.runtime.data.RFunction; import com.oracle.truffle.r.runtime.data.RStringVector; -import com.oracle.truffle.r.runtime.data.RTypedValue; import com.oracle.truffle.r.runtime.env.REnvironment.PutException; import com.oracle.truffle.r.runtime.env.frame.REnvFrameAccess; import com.oracle.truffle.r.runtime.env.frame.REnvTruffleFrameAccess; @@ -274,9 +272,6 @@ public final class RScope { if (varMap.frameAccess == null) { throw UnsupportedMessageException.raise(Message.WRITE); } - if (!(value instanceof RTypedValue)) { - throw UnsupportedTypeException.raise(new Object[]{value}); - } try { varMap.frameAccess.put(name, value); return value; -- GitLab