Skip to content

Commit de0ebd3

Browse files
committed
Extract const
1 parent e73af2a commit de0ebd3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

usvm-ts/src/main/kotlin/org/usvm/machine/expr/CallApproximations.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,10 +537,12 @@ private fun TsExprResolver.handleArrayJoin(
537537
"Array.join() is not fully implemented, returning a symbolic string constant"
538538
}
539539
scope.calcOnState {
540-
mkStringConstant("joined_array_result", scope)
540+
mkStringConstant(ARRAY_JOIN_RESULT, scope)
541541
}
542542
}
543543

544+
private const val ARRAY_JOIN_RESULT = "joined_array_result"
545+
544546
/**
545547
* Handles the `Array.slice(start, end)` method call.
546548
* Returns a shallow copy of a portion of the array from the `start` index to the `end` index.

0 commit comments

Comments
 (0)