71eaf651e8
The meaning of this check is the same as K1 JSCODE_ARGUMENT_SHOULD_BE_CONSTANT and JSCODE_ARGUMENT_NON_CONST_EXPRESSION diagnostics. The main difference is that K2 JSCODE_ARGUMENT_NON_CONST_EXPRESSION diagnostic checks the js() argument in the same way as const val initializers or annotation arguments are checked. This means that, the K2 diagnostic is stricter than original K1 JSCODE_ARGUMENT_SHOULD_BE_CONSTANT diagnostic, which allows the use of non-constant vals. ^KT-59435 Fixed