Files
sausage/userland/qjs/source/tests/bug1296.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

13 lines
285 B
JavaScript

const ab = new ArrayBuffer(10, { maxByteLength: 10 });
function f() {
return 1337;
}
const evil = f.bind();
Object.defineProperty(evil, "prototype", { get: () => {
print("resizing");
return ab.resize();
} });
let u8 = Reflect.construct(Uint8Array, [ab], evil);
print(u8);