allow resize_heap to grow heap in emscripten

This commit is contained in:
Mark McCaskey
2019-04-08 14:44:40 -07:00
committed by Syrus
parent a6c2f7e8e3
commit 8ba5ea2a08
2 changed files with 34 additions and 6 deletions

View File

@ -4,8 +4,8 @@ use std::{
ops::{Add, Sub},
};
const WASM_PAGE_SIZE: usize = 65_536;
const WASM_MAX_PAGES: usize = 65_536;
pub const WASM_PAGE_SIZE: usize = 65_536;
pub const WASM_MAX_PAGES: usize = 65_536;
/// Units of WebAssembly pages (as specified to be 65,536 bytes).
#[derive(Serialize, Deserialize, Copy, Clone, PartialEq, Eq, PartialOrd, Ord)]