[JS IR] Fix JS code diagnostics tests according to new KLIB checks
^KT-62425
This commit is contained in:
committed by
Space Team
parent
04809a6b3b
commit
261527939b
+7
-2
@@ -1,3 +1,8 @@
|
||||
// FIR_DIFFERENCE
|
||||
// The diagnostic cannot be implemented with the FIR frontend checker because it requires constant evaluation over FIR.
|
||||
// The diagnostic is implemented as a klib check over IR.
|
||||
|
||||
// ERROR_POLICY: SEMANTIC
|
||||
val code = """
|
||||
var s = "hello"
|
||||
+ );
|
||||
@@ -19,7 +24,7 @@ fun main(): Unit {
|
||||
js(<!JSCODE_ERROR!>"var " + " = " + "10;"<!>)
|
||||
|
||||
val n = 10
|
||||
js(<!JSCODE_ERROR!>"var = $n;"<!>)
|
||||
js(<!JSCODE_ERROR!>"var = $<!JSCODE_ARGUMENT_NON_CONST_EXPRESSION!>n<!>;"<!>)
|
||||
|
||||
js(<!JSCODE_ERROR!>code<!>)
|
||||
js(<!JSCODE_ARGUMENT_NON_CONST_EXPRESSION, JSCODE_ERROR!>code<!>)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user