Sébastien Doeraene

Results 83 issues of Sébastien Doeraene

The book had stayed stuck in around 2016, using very old versions of Scala, Scala.js, and libraries. This commit is a full revision of the book to use all the...

When I use `Site.renderTo`, HTML pages are rendered, but they contain junk bytes at the end of the file, after the closing ``. This is because this line: https://github.com/lihaoyi/Scalatex/blob/c50c910460580327f50fc3b43d2176c7a5e57c01/site/src/main/scala/scalatex/site/Site.scala#L132 returns...

This is the same logic that is used in the Scala.js compiler plugin for Scala 2. We catch ValDefs of the forms ```scala val SomeField = Value val SomeOtherField =...

The fundamental operation that can throw `ArrayStoreException`s is `Assign(ArraySelect(...), ...)` for a reference type array. We adapt the emitter to use a `set()` method for reference array types when either...

Fundamentally, the primitive operation that causes language-mandated `StringIndexOutOfBoundsException`s is `String.charAt`. In order for the linker to recognize it and conditionally apply checked behavior semantics to it, we introduce a new...

From the discussion at https://github.com/scala-js/scala-js/pull/4677#discussion_r914132518 As we want to actually separate the `javalib` in its own artifact, the additional API it provides to `scalajs-library` becomes public information. Therefore, we need...

enhancement
internal

See https://github.com/sbt/junit-interface and its [release list](https://github.com/sbt/junit-interface/releases). Our JUnit runtime already matches JUnit 4.13.2, but our junit-interface is still at the level of junit-interface v0.11. We should upgrade to v0.13.2 and...

upstream

And since sbt-scalajs only depends on linker-interface, this transitively removes the dependency from sbt-scalajs on scalajs-ir as well.

Extracted from #2638. We can now use `js.new.target` to refer to `new.target` in the constructor of a JS class. However, there is still no way to access `new.target` from a...

language

Since 2.12.0-M5 does not generate explicit bridges to default methods in classes anymore, the linker has more responsibility in creating default method bridges. But the way it does this is...

optimization