Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(vm): support wasm module #5131

Merged
merged 12 commits into from
Feb 8, 2024
Prev Previous commit
fix: cache promise
  • Loading branch information
hi-ogawa committed Feb 8, 2024
commit b475b9cf017fbe6f21d4b803ca31e56732d342af
2 changes: 1 addition & 1 deletion packages/vitest/src/runtime/vm/esm-executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export class EsmExecutor {
if (encoding !== 'base64')
throw new Error(`Invalid data URI encoding: ${encoding}`)

const module = await this.loadWebAssemblyModule(
const module = this.loadWebAssemblyModule(
Buffer.from(match.groups.code, 'base64'),
identifier,
)
Expand Down
Loading