INNER CODE UNIT · TypeScript
setupConstants
project-sekai-ctf/sekaictf-2025 · web/captivating-canvas-contraption/solution/index.ts:122
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));
String_charCodeAt_Descriptor = index(Object_values1(string_Descriptors), 8);
var string_class_Descriptors = Object_getOwnPropertyDescriptors1(string_class);
String_fromCharCode = getDescriptorValue(index(Object_values1(string_class_Descriptors), 3));