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

Function p

test/other/test_emsize.js:2–2  ·  view source on GitHub ↗
(b,c)

Source from the content-addressed store, hash-verified

1
2var a;a||(a=typeof Module !== 'undefined' ? Module : {});var k={},m;for(m in a)a.hasOwnProperty(m)&&(k[m]=a[m]);function p(b,c){throw c;}var q=!1,r=!1,t=!1,u=!1;q="object"===typeof window;r="function"===typeof importScripts;t="object"===typeof process&&"object"===typeof process.versions&&"string"===typeof process.versions.node;u=!q&&!t&&!r;var w="",y,z,A,B;
3if(t)w=r?require("path").dirname(w)+"/":__dirname+"/",y=function(b,c){A||(A=require("fs"));B||(B=require("path"));b=B.normalize(b);return A.readFileSync(b,c?null:"utf8")},z=function(b){b=y(b,!0);b.buffer||(b=new Uint8Array(b));b.buffer||C("Assertion failed: undefined");return b},1<process.argv.length&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),"undefined"!==typeof module&&(module.exports=a),process.on("uncaughtException",function(b){if(!(b instanceof D))throw b;}),process.on("unhandledRejection",
4C),p=function(b){process.exit(b)},a.inspect=function(){return"[Emscripten Module object]"};else if(u)"undefined"!=typeof read&&(y=function(b){return read(b)}),z=function(b){if("function"===typeof readbuffer)return new Uint8Array(readbuffer(b));b=read(b,"binary");"object"===typeof b||C("Assertion failed: undefined");return b},"function"===typeof quit&&(p=function(b){quit(b)}),"undefined"!==typeof print&&("undefined"===typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!==
5typeof printErr?printErr:print);else if(q||r)r?w=self.location.href:document.currentScript&&(w=document.currentScript.src),w=0!==w.indexOf("blob:")?w.substr(0,w.lastIndexOf("/")+1):"",y=function(b){var c=new XMLHttpRequest;c.open("GET",b,!1);c.send(null);return c.responseText},r&&(z=function(b){var c=new XMLHttpRequest;c.open("GET",b,!1);c.responseType="arraybuffer";c.send(null);return new Uint8Array(c.response)});var aa=a.print||console.log.bind(console),F=a.printErr||console.warn.bind(console);

Callers 1

bFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected