@@ -2768,20 +2768,20 @@ protected Object trSBangEmpty(RubyString self, Object fromStr, Object toStr) {
2768
2768
2769
2769
@ Specialization (
2770
2770
guards = {
2771
- "libFromStr.isRubyString(fromStr )" ,
2772
- "libToStr.isRubyString(toStr )" ,
2771
+ "libFromStr.isRubyString(fromStrAsString )" ,
2772
+ "libToStr.isRubyString(toStrAsString )" ,
2773
2773
"!self.tstring.isEmpty()" },
2774
2774
limit = "1" )
2775
2775
protected static Object trSBang (RubyString self , Object fromStr , Object toStr ,
2776
2776
@ Cached ToStrNode fromStrNode ,
2777
2777
@ Cached ToStrNode toStrNode ,
2778
+ @ Bind ("this" ) Node node ,
2779
+ @ Bind ("fromStrNode.execute(node, fromStr)" ) Object fromStrAsString ,
2780
+ @ Bind ("toStrNode.execute(node, toStr)" ) Object toStrAsString ,
2778
2781
@ Cached CheckEncodingNode checkEncodingNode ,
2779
2782
@ Cached DeleteBangNode deleteBangNode ,
2780
2783
@ Cached RubyStringLibrary libFromStr ,
2781
- @ Cached RubyStringLibrary libToStr ,
2782
- @ Bind ("this" ) Node node ) {
2783
- final var fromStrAsString = fromStrNode .execute (node , fromStr );
2784
- final var toStrAsString = toStrNode .execute (node , toStr );
2784
+ @ Cached RubyStringLibrary libToStr ) {
2785
2785
if (libToStr .getTString (toStrAsString ).isEmpty ()) {
2786
2786
return deleteBangNode .execute (node , self , new Object []{ fromStrAsString });
2787
2787
}
0 commit comments