Skip to content

StackOverflow in JS when using nested Scala XML literals #58

@kazachonak

Description

@kazachonak
class MyEntryPoint extends EntryPoint {
  def onModuleLoad {
    val xml = <b><i>text</i>text</b>
    RootPanel.get().add(new Label(xml.toString))
  }
}

DevMode works. But when compiled to JS
IE says "Stack overflow at line..."
Chrome says "Uncaught RangeError: Maximum call stack size exceeded"
Looks like the problem is inside xml.toString

But this works fine everywhere:

class MyEntryPoint extends EntryPoint {
  def onModuleLoad {
    val xml = <b>text</b>
    RootPanel.get().add(new Label(xml.toString))
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions