JS: support unsigned constants inside string templates

This commit is contained in:
Anton Bannykh
2018-08-17 14:25:23 +03:00
committed by Ilya Gorbunov
parent 6103df0b31
commit 2663d9751a
3 changed files with 24 additions and 2 deletions
@@ -365,7 +365,7 @@ private class ConstantExpressionEvaluatorVisitor(
return when (constantValue) {
is ErrorValue, is EnumValue -> return null
is NullValue -> StringValue("null")
else -> StringValue(constantValue.value.toString())
else -> StringValue(constantValue.stringTemplateValue())
}.wrap(compileTimeConstant.parameters)
}