Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
uses: actions/cache@v1
with:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-cargo-build-target-v1-${{ hashFiles('**/Cargo.lock') }}
- name: Install rustfmt
run: rustup component add rustfmt
shell: bash
Expand Down
12 changes: 7 additions & 5 deletions lib/src/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,13 +300,15 @@ fn configure_wasmtime() -> wasmtime::Config {
let module_limits = ModuleLimits {
// allow for up to 128MiB of linear memory
memory_pages: 2048,
// Default limit on types is 100, but some js programs have hit this.
// We may have to go higher at some point.
types: 200,
// ffmpeg-wasi was the last program to break the types
types: 1234,
// AssemblyScript applications tend to create a fair number of globals
globals: 64,
globals: 1234,
// Some applications create a large number of functions, in particular in debug mode
functions: 20000,
// or applications written in swift.
functions: 98765,
// And every function can end up in the table
table_elements: 98765,
..ModuleLimits::default()
};

Expand Down