Skip to content

Commit

Permalink
Correct wast backend JSON generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
sletz committed Sep 16, 2023
1 parent 273ea1d commit 19e87f7
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions compiler/generator/wasm/wast_code_container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,26 +345,7 @@ void WASTCodeContainer::produceClass()
*fOut << end;

// Helper code

// Generate JSON and getSize
tab(n, fHelper);
fHelper << "/*\n"
<< "Code generated with Faust version " << FAUSTVERSION << endl;
fHelper << "Compilation options: ";
gGlobal->printCompilationOptions(fHelper);
fHelper << "\n*/\n";

// Generate JSON
tab(n, fHelper);
string json2 = flattenJSON1(json);
fHelper << "function getJSON" << fKlassName << "() {";
tab(n + 1, fHelper);
fHelper << "return '";
fHelper << json2;
fHelper << "';";
printlines(n + 1, fUICode, fHelper);
tab(n, fHelper);
fHelper << "}\n";
fHelper << json;
}

DeclareFunInst* WASInst::generateIntMin()
Expand Down

0 comments on commit 19e87f7

Please sign in to comment.