Closed
Description
How to reproduce:
import scala.scalajs.js
object HelloWorld extends js.JSApp {
def main(): Unit = {
// Define JS class A
js.eval("var A = function A(x) {}");
// Instantiate
new A(1)
}
}
class A extends js.Object {
def this(x: Int, y: Int = ???) = this()
}
// If you uncomment this, it works
//object A extends js.Object
Will throw a NotImplementedError
coming from the ???
.