Skip to content

Instantly share code, notes, and snippets.

View yyq123's full-sized avatar
🎯
Focusing

yyq123 yyq123

🎯
Focusing
View GitHub Profile
@yyq123
yyq123 / index.html
Last active February 20, 2019 13:48 — forked from mattn/index.html
<html>
<head>
<title>Testing WebAssembly</title>
<script src="wasm_exec.js"></script>
<script type="text/javascript">
function fetchAndInstantiate(url, importObject) {
return fetch(url).then(response =>
response.arrayBuffer()
).then(bytes =>
WebAssembly.instantiate(bytes, importObject)