import { getter } from "ext:core/primordials"; import { onRuntimeStart } from "ext:core/bootstrap"; export let byteLength, growable; // V8 installs SharedArrayBuffer after restoring the snapshot's context. onRuntimeStart(() => { byteLength = getter(SharedArrayBuffer.prototype, "byteLength"); growable = getter(SharedArrayBuffer.prototype, "growable"); });