Something went wrong. Try again.
Offload functions to worker threads with shared memory primitives for Node.js.
Something went wrong. Try again.
12345678910111213141516171819202122232425import { describe, it } from 'node:test';import assert from 'node:assert/strict';import { uint64 } from 'moroutine';
describe('Uint64', () => { it('self-allocates and initializes to zero', () => { const v = uint64(); assert.equal(v.load(), 0n); });
it('stores and loads a value', () => { const v = uint64(); v.store(99n); assert.equal(v.load(), 99n); });
it('exposes byteSize of 8', () => { assert.equal(uint64.byteSize, 8); });
it('exposes byteAlignment of 8', () => { assert.equal(uint64.byteAlignment, 8); });});