[JS TESTS] Enable directive processing for js ir

This commit is contained in:
Ivan Kylchik
2021-11-12 14:58:42 +03:00
committed by teamcity
parent 8d1459d8c2
commit 41547174a7
2 changed files with 37 additions and 36 deletions
@@ -33,10 +33,11 @@ class JsAstHandler(testServices: TestServices) : JsBinaryArtifactHandler(testSer
}
private fun processJsProgram(program: JsProgram, psiFiles: List<String>, targetBackend: TargetBackend) {
psiFiles.forEach { DirectiveTestUtils.processDirectives(program, it, targetBackend) }
// TODO: For now the IR backend generates JS code that doesn't pass verification,
// TODO: so we temporarily disabled AST verification.
if (targetBackend == TargetBackend.JS) {
psiFiles.forEach { DirectiveTestUtils.processDirectives(program, it, targetBackend) }
program.verifyAst()
}
}