File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/org/truffleruby/language/dispatch Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ private RubyNode getLastArgumentNode() {
283
283
284
284
// BodyTranslator-specific condition
285
285
if (isSplatted && lastArg instanceof ArrayAppendOneNode arrayAppendOneNode ) {
286
- return arrayAppendOneNode .getValueNode ();
286
+ return RubyNode . unwrapNode ( arrayAppendOneNode .getValueNode () );
287
287
}
288
288
289
289
// YARP-specific condition
@@ -294,13 +294,13 @@ private RubyNode getLastArgumentNode() {
294
294
RubyNode [] elements = arrayConcatNode .getElements ();
295
295
assert elements .length > 0 ;
296
296
297
- RubyNode last = elements [elements .length - 1 ];
297
+ RubyNode last = RubyNode . unwrapNode ( elements [elements .length - 1 ]) ;
298
298
299
299
if (last instanceof ArrayLiteralNode arrayLiteralNode ) {
300
300
RubyNode [] values = arrayLiteralNode .getValues ();
301
301
assert values .length > 0 ;
302
302
303
- return values [values .length - 1 ];
303
+ return RubyNode . unwrapNode ( values [values .length - 1 ]) ;
304
304
} else {
305
305
return last ;
306
306
}
You can’t perform that action at this time.
0 commit comments