char/avril

(wip) why'd you have to go and make things so complicaaaaated?

git clone https://git.t4t.associates/char/avril

Charlotte Somsnapshot: prepare typed ops and static/live bootstrap711e4d5

main
363 B10 linesraw
1import { getter } from "ext:core/primordials";
2import { onRuntimeStart } from "ext:core/bootstrap";
3
4export let byteLength, growable;
5
6// V8 installs SharedArrayBuffer after restoring the snapshot's context.
7onRuntimeStart(() => {
8  byteLength = getter(SharedArrayBuffer.prototype, "byteLength");
9  growable = getter(SharedArrayBuffer.prototype, "growable");
10});