Skip to content

Commit

Permalink
Add junit bootstrapper classes to the currentRun.symSource map
Browse files Browse the repository at this point in the history
Classes being compiled in the current compilation run are expected to
be found in this map. In this particualr case, the backend would not
build the InlineInfo for these classes and later crash when the
optimizer is enabled.
  • Loading branch information
lrytz committed Dec 16, 2015
1 parent d929bff commit 24f6bac
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ class ScalaJSJUnitPlugin(val global: Global) extends NscPlugin {
scalaJSPlugin.registerModuleExports(bootSym)
bootClazz.setSymbol(bootSym)

currentRun.symSource(bootSym) = clazz.symbol.sourceFile

bootClazz
}

Expand Down

0 comments on commit 24f6bac

Please sign in to comment.