MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / main

Function main

test/embind/test_val_read_pointer.cpp:39–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37
38
39int main() {
40 EM_ASM(
41 globalThis["passthrough"] = (arg) => {
42 return arg;
43 };
44 globalThis["passthroughValueObject"] = (arg) => {
45 return arg.value;
46 };
47 globalThis["passthroughValueArray"] = (arg) => {
48 return arg[0];
49 };
50 globalThis["passthroughClass"] = (arg) => {
51 const value = arg.value;
52 arg.delete();
53 return value;
54 };
55 globalThis["passthroughMemoryView"] = (arg) => {
56 return arg[2];
57 };

Callers

nothing calls this directly

Calls 2

EM_ASMFunction · 0.70
deleteMethod · 0.65

Tested by

no test coverage detected