Fix wrong function name

This commit is contained in:
Iaroslav Postovalov 2020-12-22 13:15:01 +07:00
parent 1ab6702bb4
commit d521fa0d8d
No known key found for this signature in database
GPG Key ID: 46E15E4A31B3BCD7

View File

@ -42,7 +42,7 @@ internal class ESTreeBuilder<T>(val bodyCallback: ESTreeBuilder<T>.() -> BaseExp
value == null || jsTypeOf(value) == "number" || jsTypeOf(value) == "string" || jsTypeOf(value) == "boolean" ->
SimpleLiteral(value)
jsType(value) == "undefined" -> Identifier("undefined")
jsTypeOf(value) == "undefined" -> Identifier("undefined")
else -> {
val idx = if (value in constants) constants.indexOf(value) else constants.also { it += value }.lastIndex