MCPcopy
hub / github.com/asm-js/validator / explode

Function explode

lib/asmAssert.js:5–15  ·  view source on GitHub ↗
(test)

Source from the content-addressed store, hash-verified

3var ValidationError = asm.ValidationError;
4
5function explode(test) {
6 var __EMPTY__ = [];
7 var __PURE__ = ["var imul = stdlib.Math.imul, sin = stdlib.Math.sin;"];
8 var __ALL__ = __PURE__.concat(["var H32 = new stdlib.Int32Array(heap), HU32 = new stdlib.Uint32Array(heap), HF64 = new stdlib.Float64Array(heap);"]);
9
10 var SEP = "\n ";
11
12 return String(test).replace("__EMPTY__", __EMPTY__.join(SEP))
13 .replace("__PURE__", __PURE__.join(SEP))
14 .replace("__ALL__", __ALL__.join(SEP));
15}
16
17function asmAssert(msg, f, expect) {
18 f = explode(f);

Callers 1

asmAssertFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected