java.lang.IllegalArgumentException: empty expression should not be here during generating Javascript code

YouTrack | 11 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    K2JS crashes on `when` condition containing `return`, `break` or `continue`

    YouTrack | 11 months ago
    java.lang.IllegalArgumentException: empty expression should not be here during generating Javascript code

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      empty expression should not be here during generating Javascript code

      at com.google.dart.compiler.backend.js.ast.JsEmptyExpression.accept()
    2. com.google.dart
      JsIf.accept
      1. com.google.dart.compiler.backend.js.ast.JsEmptyExpression.accept(JsEmptyExpression.java:34)
      2. com.google.dart.compiler.backend.js.ast.JsVisitor.accept(JsVisitor.kt:11)
      3. com.google.dart.compiler.backend.js.ast.JsIf.acceptChildren(JsIf.java:63)
      4. com.google.dart.compiler.backend.js.ast.RecursiveJsVisitor.visitElement(RecursiveJsVisitor.java:8)
      5. com.google.dart.compiler.backend.js.ast.JsVisitor.visitIf(JsVisitor.kt:85)
      6. com.google.dart.compiler.backend.js.ast.JsIf.accept(JsIf.java:58)
      6 frames