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 485cfe7 commit 95363feCopy full SHA for 95363fe
src/main/java/org/truffleruby/language/RubyRootNode.java
@@ -62,14 +62,14 @@ public RubyRootNode(
62
63
// Ensure the body node is instrument-able, which requires a non-null SourceSection
64
if (!body.hasSource()) {
65
- body.unsafeSetSourceSection(getSourceSection());
+ body.unsafeSetSourceSection(sourceSection);
66
}
67
68
body.unsafeSetIsCall();
69
body.unsafeSetIsRoot();
70
71
if (language.options.CHECK_CLONE_UNINITIALIZED_CORRECTNESS) {
72
- this.bodyCopy = copyBody();
+ this.bodyCopy = NodeUtil.cloneNode(body);
73
} else {
74
this.bodyCopy = null;
75
0 commit comments