| 10 | } |
| 11 | |
| 12 | int main() { |
| 13 | EM_ASM({ |
| 14 | setTimeout(function() { |
| 15 | // hijack run dep logic to see when the metadata is loaded ok. |
| 16 | var real = Module["removeRunDependency"]; |
| 17 | Module["removeRunDependency"] = function(id) { |
| 18 | real(id); |
| 19 | if (id === "more.js.metadata") { |
| 20 | Module["_finish"](); |
| 21 | } |
| 22 | }; |
| 23 | function loadChildScript(name, then) { |
| 24 | var js = document.createElement("script"); |
| 25 | if (then) js.onload = then; |
| 26 | js.src = name; |
| 27 | document.body.appendChild(js); |
| 28 | } |
| 29 | loadChildScript("more.js"); |
| 30 | }, 1); |
| 31 | }); |
| 32 | } |
| 33 |
nothing calls this directly
no test coverage detected