Skip to content

Commit 6d4ea16

Browse files
committed
just return an already created SC instead of bailing out
1 parent d181feb commit 6d4ea16

File tree

1 file changed

+1
-1
lines changed
  • src/vm/jvm/runtime/org/perl6/nqp/runtime

1 file changed

+1
-1
lines changed

src/vm/jvm/runtime/org/perl6/nqp/runtime/Ops.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3699,7 +3699,7 @@ public static String sha1(String str) throws NoSuchAlgorithmException, Unsupport
36993699
}
37003700
public static SixModelObject createsc(String handle, ThreadContext tc) {
37013701
if (tc.gc.scs.containsKey(handle))
3702-
throw ExceptionHandling.dieInternal(tc, "SC with handle " + handle + " already exists");
3702+
return tc.gc.scRefs.get(handle);
37033703

37043704
SerializationContext sc = new SerializationContext(handle);
37053705
tc.gc.scs.put(handle, sc);

0 commit comments

Comments
 (0)