We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a01251 commit 23253fcCopy full SHA for 23253fc
src/vm/jvm/runtime/org/perl6/nqp/sixmodel/reprs/P6OpaqueBaseInstance.java
@@ -32,10 +32,13 @@ public final SixModelObject autoViv(int slot) {
32
33
public SixModelObject clone(ThreadContext tc) {
34
try {
35
+ SixModelObject cloned;
36
if (this.delegate != null)
- return this.delegate.clone(tc);
37
+ cloned = this.delegate.clone(tc);
38
else
- return (SixModelObject)this.clone();
39
+ cloned = (SixModelObject)this.clone();
40
+ cloned.sc = null;
41
+ return cloned;
42
} catch (CloneNotSupportedException e) {
43
throw new RuntimeException(e);
44
}
0 commit comments