Emit the given LinkingUnit to the target output.
Emit the given LinkingUnit to the target output.
The linking unit given to emit
must:
coreSpec
as this linker backend, andLinkingUnit to emit
File to write to
Logger to use
Symbols this backend needs to be present in the linking unit.
Symbols this backend needs to be present in the linking unit.
Core specification that this linker backend implements.
Core specification that this linker backend implements.
Verify that a LinkingUnit can be processed by this LinkerBackend.
Verify that a LinkingUnit can be processed by this LinkerBackend.
Currently, this only tests that the linking unit core specification matches coreSpec.
In the future, this test could be extended to test symbolRequirements too.
java.lang.IllegalArgumentException
if there is a mismatch
A backend of the Scala.js linker.
Produces a JavaScript file with an optional source map.
You probably want to use an instance of linker.Linker, rather than this low-level class.