Skip to content

Commit

Permalink
Remove extra call to WebAssembly.compile
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Baker committed Apr 20, 2022
1 parent 247a5ae commit 2a4722f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions content/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -1011,8 +1011,6 @@ const webAssemblyCompileHook = function(bufferSource) {
const instrumentResults = instrumentBinary(bufferSource);
const instrumentedBuffer = instrumentResults.buffer;

const compiledModule = oldWebAssemblyCompile(instrumentedBuffer);

return new Promise(function(resolve, reject) {
oldWebAssemblyCompile(instrumentedBuffer).then(function(moduleObject) {
// Store these values in the module object so that WebAssembly.Instantiate can access them
Expand Down

0 comments on commit 2a4722f

Please sign in to comment.