Skip to content
Snippets Groups Projects
Commit 176eb528 authored by Lukas Stadler's avatar Lukas Stadler
Browse files

don't restrict values that can be set in RScope

parent 0b717560
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment