Skip to content

Commit fb3bcb2

Browse files
authored
Merge pull request tanishiking#134 from sjrd/separate-ids-from-names
Separate IDs of Wasm things from their names.
2 parents cb49b3a + 6344348 commit fb3bcb2

20 files changed

+1797
-1495
lines changed

wasm/src/main/scala/org/scalajs/linker/backend/WebAssemblyLinkerBackend.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ final class WebAssemblyLinkerBackend(
7777

7878
def maybeWriteWatFile(): Future[Unit] = {
7979
if (linkerConfig.prettyPrint) {
80-
val textOutput = new TextWriter().write(wasmModule)
80+
val textOutput = new TextWriter(wasmModule).write()
8181
val textOutputBytes = textOutput.getBytes(StandardCharsets.UTF_8)
8282
outputImpl.writeFull(watFileName, ByteBuffer.wrap(textOutputBytes))
8383
} else {

wasm/src/main/scala/org/scalajs/linker/backend/wasmemitter/ClassEmitter.scala

+270-132
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)