Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (18 sloc) 485 Bytes
<!doctype html>
<html>
<head>
<title>WASM customSections() test</title>
</head>
<body>
<script>
WebAssembly.compileStreaming(fetch('simple-name-section.wasm'))
.then(function(mod) {
var nameSections = WebAssembly.Module.customSections(mod, "name");
if (nameSections.length != 0) {
console.log("Module contains a name section");
console.log(nameSections[0]);
};
});
</script>
</body>
</html>
You can’t perform that action at this time.