// Tests that wasm module scripts have special URLs.
var g = newGlobal({newCompartment: true}); var dbg = new Debugger(g);
g.eval(` function initWasm(s) { returnnew WebAssembly.Instance(new WebAssembly.Module(wasmTextToBinary(s))); }
o1 = initWasm('(module (func) (export "" (func 0)))');
o2 = initWasm('(module (func) (func) (export "" (func 1)))');
`);
function isWasm(script) { return script.format === "wasm"; }
function isValidWasmURL(url) { // The URLs will have the following format: // wasm: [<uri-encoded-filename-of-host> ":"] <64-bit-hash> return /^wasm:(?:[^:]*:)*?[0-9a-f]{16}$/.test(url);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.