| /** |
| * @license |
| * Copyright 2015 The Emscripten Authors |
| * SPDX-License-Identifier: MIT |
| */ |
| |
| // When bootstrapping struct info, we can't use the full library because |
| // it itself depends on the struct info information. |
| |
| #if !BOOTSTRAPPING_STRUCT_INFO |
| assert(false, "library_bootstrap.js only designed for use with BOOTSTRAPPING_STRUCT_INFO") |
| #endif |
| |
| assert(!LibraryManager.library); |
| LibraryManager.library = { |
| $callRuntimeCallbacks: function(callbacks) { |
| while (callbacks.length > 0) { |
| var callback = callbacks.shift(); |
| if (typeof callback == 'function') { |
| callback(Module); |
| } |
| } |
| } |
| }; |