Emit the given ModuleSet
to the target output.
Emit the given ModuleSet
to the target output.
The linking unit given to emit
must:
coreSpec
as this linker backend, andModuleSet
to emit
Directory to write to
Logger to use
Additional IR files to inject for linking, mandated by this back-end.
Additional IR files to inject for linking, mandated by this back-end.
Example: the standard emitter back-end injects RuntimeLong.sjsir
and
its companion object, unless it uses BigInt
s to implement Long
s.
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 ModuleSet
can be processed by this LinkerBackend
.
Verify that a ModuleSet
can be processed by this LinkerBackend
.
Currently, this only tests that the module set 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 interface.Linker, rather than this low-level class.