cred: isolate scripts in WASI and move RSA signing to AWS-LC
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
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))
|
||||
Reference in New Issue
Block a user