git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit a3b9c88c4884b2b2f42a88e75023168e5f85a08a

Add isWASMCode helper

Alex Beregszaszi committed on 8/23/2016, 12:27:46 AM
Parent: 8666afc1dd3be42258266197d74744366f739564

Files changed

utils.jsadded
utils.jsView
@@ -1,0 +1,7 @@
1+var Utils = {}
2+
3+Utils.isWASMCode = function (code) {
4+ return code.slice(0, 4).toString() === new Uint8Array([0, 0x61, 0x73, 0x6d]).toString()
5+}
6+
7+module.exports = Utils

Built with git-ssb-web