Navigation Menu

Skip to content

Commit

Permalink
Capitalize Wasm2Js -> Wasm2JS
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Aug 27, 2018
1 parent 372e276 commit 807f06f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/binaryen-c.cpp
Expand Up @@ -2008,8 +2008,8 @@ void BinaryenModulePrintAsmjs(BinaryenModuleRef module) {
}

Module* wasm = (Module*)module;
Wasm2JsBuilder::Flags builderFlags;
Wasm2JsBuilder wasm2js(builderFlags);
Wasm2JSBuilder::Flags builderFlags;
Wasm2JSBuilder wasm2js(builderFlags);
Ref asmjs = wasm2js.processWasm(wasm);
JSPrinter jser(true, true, asmjs);
jser.printAst();
Expand Down
6 changes: 3 additions & 3 deletions src/tools/wasm2js.cpp
Expand Up @@ -28,7 +28,7 @@ using namespace cashew;
using namespace wasm;

int main(int argc, const char *argv[]) {
Wasm2JsBuilder::Flags builderFlags;
Wasm2JSBuilder::Flags builderFlags;
Options options("wasm2js", "Transform .wasm/.wast files to asm.js");
options
.add("--output", "-o", "Output file (stdout if not specified)",
Expand Down Expand Up @@ -75,7 +75,7 @@ int main(int argc, const char *argv[]) {
reader.read(input, wasm, "");

if (options.debug) std::cerr << "asming..." << std::endl;
Wasm2JsBuilder wasm2js(builderFlags);
Wasm2JSBuilder wasm2js(builderFlags);
asmjs = wasm2js.processWasm(&wasm);

// Otherwise assume it's a `*.wast` file and go from there
Expand All @@ -90,7 +90,7 @@ int main(int argc, const char *argv[]) {
SExpressionWasmBuilder builder(wasm, *(*root)[0]);

if (options.debug) std::cerr << "asming..." << std::endl;
Wasm2JsBuilder wasm2js(builderFlags);
Wasm2JSBuilder wasm2js(builderFlags);
asmjs = wasm2js.processWasm(&wasm);

if (options.extra["asserts"] == "1") {
Expand Down

0 comments on commit 807f06f

Please sign in to comment.