MCPcopy Create free account
hub / github.com/GoogleChrome/samples / createExportWrapper

Function createExportWrapper

mkbitmap/mkbitmap.js:727–740  ·  view source on GitHub ↗

@param {boolean=} fixedasm

(name, fixedasm)

Source from the content-addressed store, hash-verified

725// end include: URIUtils.js
726/** @param {boolean=} fixedasm */
727function createExportWrapper(name, fixedasm) {
728 return function() {
729 var displayName = name;
730 var asm = fixedasm;
731 if (!fixedasm) {
732 asm = Module['asm'];
733 }
734 assert(runtimeInitialized, 'native function `' + displayName + '` called before runtime initialization');
735 if (!asm[name]) {
736 assert(asm[name], 'exported native function `' + displayName + '` not found');
737 }
738 return asm[name].apply(null, arguments);
739 };
740}
741
742// include: runtime_exceptions.js
743// end include: runtime_exceptions.js

Callers 1

mkbitmap.jsFile · 0.85

Calls 1

assertFunction · 0.70

Tested by

no test coverage detected