File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/java/org/truffleruby/core/regexp Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 38
38
import org .truffleruby .core .regexp .RegexpNodesFactory .ToSNodeFactory ;
39
39
import org .truffleruby .core .rope .CodeRange ;
40
40
import org .truffleruby .core .rope .Rope ;
41
+ import org .truffleruby .core .rope .RopeOperations ;
41
42
import org .truffleruby .core .string .RubyString ;
42
43
import org .truffleruby .core .string .StringNodes ;
43
44
import org .truffleruby .core .symbol .RubySymbol ;
@@ -221,7 +222,7 @@ protected RubyArray regexpNames(RubyRegexp regexp) {
221
222
final NameEntry e = iter .next ();
222
223
final byte [] bytes = Arrays .copyOfRange (e .name , e .nameP , e .nameEnd );
223
224
224
- final Rope rope = getLanguage (). ropeCache . getRope (bytes , UTF8Encoding .INSTANCE , CodeRange .CR_UNKNOWN );
225
+ final Rope rope = RopeOperations . create (bytes , UTF8Encoding .INSTANCE , CodeRange .CR_UNKNOWN );
225
226
final RubySymbol name = getSymbol (rope );
226
227
227
228
final int [] backrefs = e .getBackRefs ();
You can’t perform that action at this time.
0 commit comments