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

Commit 11d24cf

Browse files
committed
Remove all the Wasm prefixes to all the WebAssembly classes.
Now that everything is properly namespaced, we do not need this artificial namespacing in the class names.
1 parent e5d4a45 commit 11d24cf

18 files changed

+1299
-1299
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)