Memory constructor

Memory({
  1. required int initial,
  2. int? maximum,
})

Creates a Memory of initial pages. One page is 65536 bytes.

If provided, maximum must be greater than or equal to initial.

Implementation

Memory({required int initial, int? maximum})
    : jsObject = _Memory(_descriptor(initial, maximum, false));