Files
sausage/userland/qjs/source/tests/bug988.js
T
surma d44f1d9677 Build separate native and WASI pipelines with shared multicall names
Checkpoint before integration and package validation.

Assisted-by: SurmAgent:unknown [read] [edit] [bash]
2026-11-12 09:36:27 +00:00

8 lines
290 B
JavaScript

import {assert} from "./assert.js"
const expected = [97,98,99]
const ab = new ArrayBuffer(0, {maxByteLength:3})
const dv = new DataView(ab)
ab.resize(3)
for (const [i,v] of Object.entries(expected)) dv.setUint8(i, v)
for (const [i,v] of Object.entries(expected)) assert(v, dv.getUint8(i))