Skip to content

fix: wasm load error with dynamic import expression#991

Merged
9aoy merged 7 commits intomainfrom
wasm-import-expression
Mar 4, 2026
Merged

fix: wasm load error with dynamic import expression#991
9aoy merged 7 commits intomainfrom
wasm-import-expression

Conversation

@9aoy
Copy link
Copy Markdown
Collaborator

@9aoy 9aoy commented Mar 2, 2026

Summary

fix wasm load error with dynamic import expression.

  const wasmUrl = new URL('./factorial.wasm', import.meta.url);
  const { _Z4facti: AsyncFactorial } = await import(wasmUrl.href);

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying rstest with  Cloudflare Pages  Cloudflare Pages

Latest commit: f2049b9
Status: ✅  Deploy successful!
Preview URL: https://03227d9e.rstest.pages.dev
Branch Preview URL: https://wasm-import-expression.rstest.pages.dev

View logs

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f2049b9103

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@9aoy 9aoy merged commit 89d1b2f into main Mar 4, 2026
9 checks passed
@9aoy 9aoy deleted the wasm-import-expression branch March 4, 2026 07:36
@9aoy 9aoy mentioned this pull request Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant