Skip to content

Commit 371d079

Browse files
committed
Cleanup: treat String as ordinary class in class resolution (remove special-case in TaggedValue::getClass); suite green
1 parent 30e6521 commit 371d079

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/cpp/src/tagged_value.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ Class *TaggedValue::getClass() const {
3131
return ClassUtils::getUndefinedObjectClass();
3232
} else if (isPointer()) {
3333
try {
34-
// Strings are byte-indexable and detected via utility
35-
if (StringUtils::isString(*this)) {
36-
return ClassUtils::getStringClass();
37-
}
38-
// Otherwise use the object's class directly
3934
Object *obj = asObject();
4035
return obj ? obj->getClass() : nullptr;
4136
} catch (...) {
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)