INNER CODE UNIT · TypeScript

getDescriptorValue

project-sekai-ctf/sekaictf-2025 · web/captivating-canvas-contraption/solution/index.ts:118

export function getDescriptorValue(descriptor: externref): externref {
    return index(Object_values1(descriptor), 0);
}

export function setupConstants(): void {
    /* Nothing special, just grabbing a ton of indexes to get some reuables */
    sample_String = proto_toString0();
    string_prototype = Object_getPrototypeOf1(sample_String);
    object_prototype = Object_getPrototypeOf1(string_prototype);

    var string_Descriptors = Object_getOwnPropertyDescriptors1(
        string_prototype
    );
    /* String constructor is at index 1 */
    string_class = getDescriptorValue(index(
        Object_values1(
            string_Descriptors
        ), 1));

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…