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

Method start

test/emscripten_api_browser_infloop.cpp:37–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 }
36
37 void start() {
38 instance = this;
39
40 EM_ASM({
41 var initial = stackSave();
42 out('seeing initial stack of ' + initial);
43 setTimeout(function() {
44 var current = stackSave();
45 out('seeing later stack of ' + current);
46 assert(current === initial);
47 }, 0);
48 });
49
50 // important if we simulate an infinite loop here or not. With an infinite loop, the
51 // destructor should *NOT* have been called
52 emscripten_set_main_loop(Class::callback, 3, 1);
53 }
54};
55
56Class *Class::instance = NULL;

Callers 15

extract_comp_dir_mapFunction · 0.45
extract_func_rangesFunction · 0.45
read_dwarf_infoFunction · 0.45
compiler.mjsFile · 0.45
__enter__Method · 0.45
mainFunction · 0.45
setUpClassMethod · 0.45
test_cross_originMethod · 0.45

Calls 4

stackSaveFunction · 0.85
EM_ASMFunction · 0.50
outFunction · 0.50
assertFunction · 0.50