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 75e9c62 commit 216fc84Copy full SHA for 216fc84
src/main/java/org/truffleruby/core/string/FrozenStringLiterals.java
@@ -36,6 +36,7 @@ public DynamicObject getFrozenStringLiteral(Rope rope) {
36
}
37
38
public DynamicObject getFrozenStringLiteral(DynamicObject string) {
39
+ assert Layouts.STRING.getFrozen(string) == true;
40
final Rope rope = Layouts.STRING.getRope(string);
41
final RopeKey key = new RopeKey(rope, context.getHashing(values));
42
return values.addInCacheIfAbsent(key, string);
0 commit comments