Skip to content
This repository was archived by the owner on Jul 12, 2024. It is now read-only.

Commit 489b870

Browse files
authored
Merge pull request #127 from sjrd/adapt-namespacing-to-core-conventions
Adapt namespacing to Scala.js core conventions.
2 parents b953150 + 5287949 commit 489b870

19 files changed

+2790
-2768
lines changed

Diff for: wasm/src/main/scala/org/scalajs/linker/backend/WebAssemblyLinkerBackend.scala

+3-3
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ final class WebAssemblyLinkerBackend(
7676

7777
def maybeWriteWatFile(): Future[Unit] = {
7878
if (linkerConfig.prettyPrint) {
79-
val textOutput = new WasmTextWriter().write(wasmModule)
79+
val textOutput = new TextWriter().write(wasmModule)
8080
val textOutputBytes = textOutput.getBytes(StandardCharsets.UTF_8)
8181
outputImpl.writeFull(watFileName, ByteBuffer.wrap(textOutputBytes))
8282
} else {
@@ -95,7 +95,7 @@ final class WebAssemblyLinkerBackend(
9595

9696
val smWriter =
9797
sourceMapWriter.createSourceMapWriter(wasmFileURI, linkerConfig.relativizeSourceMapBase)
98-
val binaryOutput = new WasmBinaryWriter.WithSourceMap(
98+
val binaryOutput = new BinaryWriter.WithSourceMap(
9999
wasmModule,
100100
emitDebugInfo,
101101
smWriter,
@@ -107,7 +107,7 @@ final class WebAssemblyLinkerBackend(
107107
outputImpl.writeFull(sourceMapFileName, sourceMapWriter.toByteBuffer())
108108
}
109109
} else {
110-
val binaryOutput = new WasmBinaryWriter(wasmModule, emitDebugInfo).write()
110+
val binaryOutput = new BinaryWriter(wasmModule, emitDebugInfo).write()
111111
outputImpl.writeFull(wasmFileName, ByteBuffer.wrap(binaryOutput))
112112
}
113113
}

0 commit comments

Comments
 (0)