Skip to content

Commit

Permalink
Merge branch 'features/small-size-and-tests' into features/bigint-par…
Browse files Browse the repository at this point in the history
…ameters

# Conflicts:
#	README.md
  • Loading branch information
syrusakbary committed Oct 11, 2019
2 parents 28aaa40 + 5c7a8ec commit 12450a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rollup-plugins/index-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ export default function({ indexPath, pluginFolder }) {
const importName = `${pluginName}_internal`;
return `
import { default as ${importName} } from "./${pluginFolder}/${plugin}/index.js";
export const ${pluginName} = ${importName}.bind(null, ${module}, validate);
export const ${pluginName} = ${importName}.bind(null, new Uint8Array(${module}), validate);
`;
}
return `
export const ${pluginName} = validate.bind(null, ${module});
export const ${pluginName} = validate.bind(null, new Uint8Array(${module}));
`;
})
);
Expand Down
2 changes: 1 addition & 1 deletion src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
// be called quite often and by having our own function terser can give it
// a one-letter name.
export async function validate(module) {
return WebAssembly.validate(new Uint8Array(module));
return WebAssembly.validate(module);
}

0 comments on commit 12450a4

Please sign in to comment.