Skip to content

BREAKING: Synchronously initialise WASM modules#2024

Merged
Mrtenz merged 7 commits intomainfrom
mrtenz/sync-wasm
Dec 13, 2023
Merged

BREAKING: Synchronously initialise WASM modules#2024
Mrtenz merged 7 commits intomainfrom
mrtenz/sync-wasm

Conversation

@Mrtenz
Copy link
Copy Markdown
Member

@Mrtenz Mrtenz commented Dec 8, 2023

When the experimental.wasm flag in the Snaps CLI is enabled, the WASM module will now be synchronously initialised, rather than being inlined as a Uint8Array.

For example, if the WASM module exports a fibonacci function, the following is now possible:

import { fibonacci } from './path/to/file.wasm';

fibonacci(...);

This is a breaking change, because previously the WASM module would be inlined as Uint8Array instead.

@Mrtenz Mrtenz requested a review from a team as a code owner December 8, 2023 10:53
@codecov
Copy link
Copy Markdown

codecov bot commented Dec 8, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (57d8a53) 96.08% compared to head (daafb31) 96.10%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2024      +/-   ##
==========================================
+ Coverage   96.08%   96.10%   +0.01%     
==========================================
  Files         269      269              
  Lines        6262     6286      +24     
  Branches     1010     1011       +1     
==========================================
+ Hits         6017     6041      +24     
  Misses        245      245              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants