function doSmth() { %DebugPrint ( foo ) } function printFunc ( f ) { if(% IsAsmWasmCode(f)) console.log("asm.js"); if( % IsWasmCode( f)) console.log ( "wasm" ); console.log (% GetFunctioName(f) ); }