lini-wasm 1.0.2 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node/lini_wasm.d.ts +4 -4
- package/node/lini_wasm.js +82 -8
- package/node/lini_wasm_bg.wasm +0 -0
- package/node/lini_wasm_bg.wasm.d.ts +5 -5
- package/package.json +1 -1
- package/web/lini_wasm.d.ts +9 -9
- package/web/lini_wasm.js +82 -8
- package/web/lini_wasm_bg.wasm +0 -0
- package/web/lini_wasm_bg.wasm.d.ts +5 -5
package/node/lini_wasm.d.ts
CHANGED
|
@@ -7,19 +7,19 @@
|
|
|
7
7
|
* Throws on any error-level diagnostic, with the compiler's own LSP-shaped
|
|
8
8
|
* message (`play.lini:3:5: error: …`) as the thrown value.
|
|
9
9
|
*/
|
|
10
|
-
export function compile(src: string): string;
|
|
10
|
+
export function compile(src: string, assets: any): string;
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Compile to a full HTML page rather than a bare SVG — the `--format html`
|
|
14
14
|
* output, for a preview pane that wants a self-contained document.
|
|
15
15
|
*/
|
|
16
|
-
export function compile_html(src: string): string;
|
|
16
|
+
export function compile_html(src: string, assets: any): string;
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Compile with `var()` references inlined and text outlined to paths — the
|
|
20
20
|
* `--static` output. Self-contained for download, or for a canvas rasteriser.
|
|
21
21
|
*/
|
|
22
|
-
export function compile_static(src: string): string;
|
|
22
|
+
export function compile_static(src: string, assets: any): string;
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* The source with every bit of sugar lowered to primitives — what `lini
|
|
@@ -32,7 +32,7 @@ export function desugar(src: string): string;
|
|
|
32
32
|
* severities, and machine-applicable fixes. Never throws: a file that cannot
|
|
33
33
|
* compile still reports why, which is what an editor's gutter wants.
|
|
34
34
|
*/
|
|
35
|
-
export function diagnostics(src: string): string;
|
|
35
|
+
export function diagnostics(src: string, assets: any): string;
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* Canonical formatting — what `lini fmt` writes.
|
package/node/lini_wasm.js
CHANGED
|
@@ -6,16 +6,17 @@
|
|
|
6
6
|
* Throws on any error-level diagnostic, with the compiler's own LSP-shaped
|
|
7
7
|
* message (`play.lini:3:5: error: …`) as the thrown value.
|
|
8
8
|
* @param {string} src
|
|
9
|
+
* @param {any} assets
|
|
9
10
|
* @returns {string}
|
|
10
11
|
*/
|
|
11
|
-
function compile(src) {
|
|
12
|
+
function compile(src, assets) {
|
|
12
13
|
let deferred3_0;
|
|
13
14
|
let deferred3_1;
|
|
14
15
|
try {
|
|
15
16
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
16
17
|
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
17
18
|
const len0 = WASM_VECTOR_LEN;
|
|
18
|
-
wasm.compile(retptr, ptr0, len0);
|
|
19
|
+
wasm.compile(retptr, ptr0, len0, addHeapObject(assets));
|
|
19
20
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
20
21
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
21
22
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -40,16 +41,17 @@ exports.compile = compile;
|
|
|
40
41
|
* Compile to a full HTML page rather than a bare SVG — the `--format html`
|
|
41
42
|
* output, for a preview pane that wants a self-contained document.
|
|
42
43
|
* @param {string} src
|
|
44
|
+
* @param {any} assets
|
|
43
45
|
* @returns {string}
|
|
44
46
|
*/
|
|
45
|
-
function compile_html(src) {
|
|
47
|
+
function compile_html(src, assets) {
|
|
46
48
|
let deferred3_0;
|
|
47
49
|
let deferred3_1;
|
|
48
50
|
try {
|
|
49
51
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
50
52
|
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
51
53
|
const len0 = WASM_VECTOR_LEN;
|
|
52
|
-
wasm.compile_html(retptr, ptr0, len0);
|
|
54
|
+
wasm.compile_html(retptr, ptr0, len0, addHeapObject(assets));
|
|
53
55
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
54
56
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
55
57
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -74,16 +76,17 @@ exports.compile_html = compile_html;
|
|
|
74
76
|
* Compile with `var()` references inlined and text outlined to paths — the
|
|
75
77
|
* `--static` output. Self-contained for download, or for a canvas rasteriser.
|
|
76
78
|
* @param {string} src
|
|
79
|
+
* @param {any} assets
|
|
77
80
|
* @returns {string}
|
|
78
81
|
*/
|
|
79
|
-
function compile_static(src) {
|
|
82
|
+
function compile_static(src, assets) {
|
|
80
83
|
let deferred3_0;
|
|
81
84
|
let deferred3_1;
|
|
82
85
|
try {
|
|
83
86
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
84
87
|
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
85
88
|
const len0 = WASM_VECTOR_LEN;
|
|
86
|
-
wasm.compile_static(retptr, ptr0, len0);
|
|
89
|
+
wasm.compile_static(retptr, ptr0, len0, addHeapObject(assets));
|
|
87
90
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
88
91
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
89
92
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -143,16 +146,17 @@ exports.desugar = desugar;
|
|
|
143
146
|
* severities, and machine-applicable fixes. Never throws: a file that cannot
|
|
144
147
|
* compile still reports why, which is what an editor's gutter wants.
|
|
145
148
|
* @param {string} src
|
|
149
|
+
* @param {any} assets
|
|
146
150
|
* @returns {string}
|
|
147
151
|
*/
|
|
148
|
-
function diagnostics(src) {
|
|
152
|
+
function diagnostics(src, assets) {
|
|
149
153
|
let deferred2_0;
|
|
150
154
|
let deferred2_1;
|
|
151
155
|
try {
|
|
152
156
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
153
157
|
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
154
158
|
const len0 = WASM_VECTOR_LEN;
|
|
155
|
-
wasm.diagnostics(retptr, ptr0, len0);
|
|
159
|
+
wasm.diagnostics(retptr, ptr0, len0, addHeapObject(assets));
|
|
156
160
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
157
161
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
158
162
|
deferred2_0 = r0;
|
|
@@ -283,6 +287,67 @@ function __wbg_get_imports() {
|
|
|
283
287
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
284
288
|
return addHeapObject(ret);
|
|
285
289
|
},
|
|
290
|
+
__wbg___wbindgen_string_get_d154f1e671052120: function(arg0, arg1) {
|
|
291
|
+
const obj = getObject(arg1);
|
|
292
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
293
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
294
|
+
var len1 = WASM_VECTOR_LEN;
|
|
295
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
296
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
297
|
+
},
|
|
298
|
+
__wbg___wbindgen_throw_bb96b2010945f0bc: function(arg0, arg1) {
|
|
299
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
300
|
+
},
|
|
301
|
+
__wbg_entries_7774d489e1da5f4f: function(arg0) {
|
|
302
|
+
const ret = Object.entries(getObject(arg0));
|
|
303
|
+
return addHeapObject(ret);
|
|
304
|
+
},
|
|
305
|
+
__wbg_from_74f3d90e0ff11240: function(arg0) {
|
|
306
|
+
const ret = Array.from(getObject(arg0));
|
|
307
|
+
return addHeapObject(ret);
|
|
308
|
+
},
|
|
309
|
+
__wbg_get_c0c8f8d7da0c03dd: function(arg0, arg1) {
|
|
310
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
311
|
+
return addHeapObject(ret);
|
|
312
|
+
},
|
|
313
|
+
__wbg_get_unchecked_e20b893aeafc3fca: function(arg0, arg1) {
|
|
314
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
315
|
+
return addHeapObject(ret);
|
|
316
|
+
},
|
|
317
|
+
__wbg_instanceof_Object_80ad464782e2bd73: function(arg0) {
|
|
318
|
+
let result;
|
|
319
|
+
try {
|
|
320
|
+
result = getObject(arg0) instanceof Object;
|
|
321
|
+
} catch (_) {
|
|
322
|
+
result = false;
|
|
323
|
+
}
|
|
324
|
+
const ret = result;
|
|
325
|
+
return ret;
|
|
326
|
+
},
|
|
327
|
+
__wbg_instanceof_Uint8Array_f935dbb0aa7cdeed: function(arg0) {
|
|
328
|
+
let result;
|
|
329
|
+
try {
|
|
330
|
+
result = getObject(arg0) instanceof Uint8Array;
|
|
331
|
+
} catch (_) {
|
|
332
|
+
result = false;
|
|
333
|
+
}
|
|
334
|
+
const ret = result;
|
|
335
|
+
return ret;
|
|
336
|
+
},
|
|
337
|
+
__wbg_length_36bd29c6848c2144: function(arg0) {
|
|
338
|
+
const ret = getObject(arg0).length;
|
|
339
|
+
return ret;
|
|
340
|
+
},
|
|
341
|
+
__wbg_length_ecfa2c63d3d0d82c: function(arg0) {
|
|
342
|
+
const ret = getObject(arg0).length;
|
|
343
|
+
return ret;
|
|
344
|
+
},
|
|
345
|
+
__wbg_prototypesetcall_de8e0d9553586985: function(arg0, arg1, arg2) {
|
|
346
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
347
|
+
},
|
|
348
|
+
__wbindgen_object_drop_ref: function(arg0) {
|
|
349
|
+
takeObject(arg0);
|
|
350
|
+
},
|
|
286
351
|
};
|
|
287
352
|
return {
|
|
288
353
|
__proto__: null,
|
|
@@ -305,6 +370,11 @@ function dropObject(idx) {
|
|
|
305
370
|
heap_next = idx;
|
|
306
371
|
}
|
|
307
372
|
|
|
373
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
374
|
+
ptr = ptr >>> 0;
|
|
375
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
376
|
+
}
|
|
377
|
+
|
|
308
378
|
let cachedDataViewMemory0 = null;
|
|
309
379
|
function getDataViewMemory0() {
|
|
310
380
|
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
@@ -332,6 +402,10 @@ heap.push(undefined, null, true, false);
|
|
|
332
402
|
|
|
333
403
|
let heap_next = heap.length;
|
|
334
404
|
|
|
405
|
+
function isLikeNone(x) {
|
|
406
|
+
return x === undefined || x === null;
|
|
407
|
+
}
|
|
408
|
+
|
|
335
409
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
336
410
|
if (realloc === undefined) {
|
|
337
411
|
const buf = cachedTextEncoder.encode(arg);
|
package/node/lini_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const compile: (a: number, b: number, c: number) => void;
|
|
5
|
-
export const compile_html: (a: number, b: number, c: number) => void;
|
|
6
|
-
export const compile_static: (a: number, b: number, c: number) => void;
|
|
4
|
+
export const compile: (a: number, b: number, c: number, d: number) => void;
|
|
5
|
+
export const compile_html: (a: number, b: number, c: number, d: number) => void;
|
|
6
|
+
export const compile_static: (a: number, b: number, c: number, d: number) => void;
|
|
7
7
|
export const desugar: (a: number, b: number, c: number) => void;
|
|
8
|
-
export const diagnostics: (a: number, b: number, c: number) => void;
|
|
8
|
+
export const diagnostics: (a: number, b: number, c: number, d: number) => void;
|
|
9
9
|
export const format: (a: number, b: number, c: number) => void;
|
|
10
10
|
export const highlight: (a: number, b: number, c: number) => void;
|
|
11
11
|
export const highlight_css: (a: number) => void;
|
|
12
12
|
export const version: (a: number) => void;
|
|
13
|
-
export const __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
14
13
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
15
14
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
15
|
+
export const __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
16
16
|
export const __wbindgen_export3: (a: number, b: number, c: number) => void;
|
package/package.json
CHANGED
package/web/lini_wasm.d.ts
CHANGED
|
@@ -7,19 +7,19 @@
|
|
|
7
7
|
* Throws on any error-level diagnostic, with the compiler's own LSP-shaped
|
|
8
8
|
* message (`play.lini:3:5: error: …`) as the thrown value.
|
|
9
9
|
*/
|
|
10
|
-
export function compile(src: string): string;
|
|
10
|
+
export function compile(src: string, assets: any): string;
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Compile to a full HTML page rather than a bare SVG — the `--format html`
|
|
14
14
|
* output, for a preview pane that wants a self-contained document.
|
|
15
15
|
*/
|
|
16
|
-
export function compile_html(src: string): string;
|
|
16
|
+
export function compile_html(src: string, assets: any): string;
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Compile with `var()` references inlined and text outlined to paths — the
|
|
20
20
|
* `--static` output. Self-contained for download, or for a canvas rasteriser.
|
|
21
21
|
*/
|
|
22
|
-
export function compile_static(src: string): string;
|
|
22
|
+
export function compile_static(src: string, assets: any): string;
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* The source with every bit of sugar lowered to primitives — what `lini
|
|
@@ -32,7 +32,7 @@ export function desugar(src: string): string;
|
|
|
32
32
|
* severities, and machine-applicable fixes. Never throws: a file that cannot
|
|
33
33
|
* compile still reports why, which is what an editor's gutter wants.
|
|
34
34
|
*/
|
|
35
|
-
export function diagnostics(src: string): string;
|
|
35
|
+
export function diagnostics(src: string, assets: any): string;
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* Canonical formatting — what `lini fmt` writes.
|
|
@@ -68,18 +68,18 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
68
68
|
|
|
69
69
|
export interface InitOutput {
|
|
70
70
|
readonly memory: WebAssembly.Memory;
|
|
71
|
-
readonly compile: (a: number, b: number, c: number) => void;
|
|
72
|
-
readonly compile_html: (a: number, b: number, c: number) => void;
|
|
73
|
-
readonly compile_static: (a: number, b: number, c: number) => void;
|
|
71
|
+
readonly compile: (a: number, b: number, c: number, d: number) => void;
|
|
72
|
+
readonly compile_html: (a: number, b: number, c: number, d: number) => void;
|
|
73
|
+
readonly compile_static: (a: number, b: number, c: number, d: number) => void;
|
|
74
74
|
readonly desugar: (a: number, b: number, c: number) => void;
|
|
75
|
-
readonly diagnostics: (a: number, b: number, c: number) => void;
|
|
75
|
+
readonly diagnostics: (a: number, b: number, c: number, d: number) => void;
|
|
76
76
|
readonly format: (a: number, b: number, c: number) => void;
|
|
77
77
|
readonly highlight: (a: number, b: number, c: number) => void;
|
|
78
78
|
readonly highlight_css: (a: number) => void;
|
|
79
79
|
readonly version: (a: number) => void;
|
|
80
|
-
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
81
80
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
82
81
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
82
|
+
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
83
83
|
readonly __wbindgen_export3: (a: number, b: number, c: number) => void;
|
|
84
84
|
}
|
|
85
85
|
|
package/web/lini_wasm.js
CHANGED
|
@@ -6,16 +6,17 @@
|
|
|
6
6
|
* Throws on any error-level diagnostic, with the compiler's own LSP-shaped
|
|
7
7
|
* message (`play.lini:3:5: error: …`) as the thrown value.
|
|
8
8
|
* @param {string} src
|
|
9
|
+
* @param {any} assets
|
|
9
10
|
* @returns {string}
|
|
10
11
|
*/
|
|
11
|
-
export function compile(src) {
|
|
12
|
+
export function compile(src, assets) {
|
|
12
13
|
let deferred3_0;
|
|
13
14
|
let deferred3_1;
|
|
14
15
|
try {
|
|
15
16
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
16
17
|
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
17
18
|
const len0 = WASM_VECTOR_LEN;
|
|
18
|
-
wasm.compile(retptr, ptr0, len0);
|
|
19
|
+
wasm.compile(retptr, ptr0, len0, addHeapObject(assets));
|
|
19
20
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
20
21
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
21
22
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -39,16 +40,17 @@ export function compile(src) {
|
|
|
39
40
|
* Compile to a full HTML page rather than a bare SVG — the `--format html`
|
|
40
41
|
* output, for a preview pane that wants a self-contained document.
|
|
41
42
|
* @param {string} src
|
|
43
|
+
* @param {any} assets
|
|
42
44
|
* @returns {string}
|
|
43
45
|
*/
|
|
44
|
-
export function compile_html(src) {
|
|
46
|
+
export function compile_html(src, assets) {
|
|
45
47
|
let deferred3_0;
|
|
46
48
|
let deferred3_1;
|
|
47
49
|
try {
|
|
48
50
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
49
51
|
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
50
52
|
const len0 = WASM_VECTOR_LEN;
|
|
51
|
-
wasm.compile_html(retptr, ptr0, len0);
|
|
53
|
+
wasm.compile_html(retptr, ptr0, len0, addHeapObject(assets));
|
|
52
54
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
53
55
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
54
56
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -72,16 +74,17 @@ export function compile_html(src) {
|
|
|
72
74
|
* Compile with `var()` references inlined and text outlined to paths — the
|
|
73
75
|
* `--static` output. Self-contained for download, or for a canvas rasteriser.
|
|
74
76
|
* @param {string} src
|
|
77
|
+
* @param {any} assets
|
|
75
78
|
* @returns {string}
|
|
76
79
|
*/
|
|
77
|
-
export function compile_static(src) {
|
|
80
|
+
export function compile_static(src, assets) {
|
|
78
81
|
let deferred3_0;
|
|
79
82
|
let deferred3_1;
|
|
80
83
|
try {
|
|
81
84
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
82
85
|
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
83
86
|
const len0 = WASM_VECTOR_LEN;
|
|
84
|
-
wasm.compile_static(retptr, ptr0, len0);
|
|
87
|
+
wasm.compile_static(retptr, ptr0, len0, addHeapObject(assets));
|
|
85
88
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
86
89
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
87
90
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -139,16 +142,17 @@ export function desugar(src) {
|
|
|
139
142
|
* severities, and machine-applicable fixes. Never throws: a file that cannot
|
|
140
143
|
* compile still reports why, which is what an editor's gutter wants.
|
|
141
144
|
* @param {string} src
|
|
145
|
+
* @param {any} assets
|
|
142
146
|
* @returns {string}
|
|
143
147
|
*/
|
|
144
|
-
export function diagnostics(src) {
|
|
148
|
+
export function diagnostics(src, assets) {
|
|
145
149
|
let deferred2_0;
|
|
146
150
|
let deferred2_1;
|
|
147
151
|
try {
|
|
148
152
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
149
153
|
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
150
154
|
const len0 = WASM_VECTOR_LEN;
|
|
151
|
-
wasm.diagnostics(retptr, ptr0, len0);
|
|
155
|
+
wasm.diagnostics(retptr, ptr0, len0, addHeapObject(assets));
|
|
152
156
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
153
157
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
154
158
|
deferred2_0 = r0;
|
|
@@ -274,6 +278,67 @@ function __wbg_get_imports() {
|
|
|
274
278
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
275
279
|
return addHeapObject(ret);
|
|
276
280
|
},
|
|
281
|
+
__wbg___wbindgen_string_get_d154f1e671052120: function(arg0, arg1) {
|
|
282
|
+
const obj = getObject(arg1);
|
|
283
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
284
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
285
|
+
var len1 = WASM_VECTOR_LEN;
|
|
286
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
287
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
288
|
+
},
|
|
289
|
+
__wbg___wbindgen_throw_bb96b2010945f0bc: function(arg0, arg1) {
|
|
290
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
291
|
+
},
|
|
292
|
+
__wbg_entries_7774d489e1da5f4f: function(arg0) {
|
|
293
|
+
const ret = Object.entries(getObject(arg0));
|
|
294
|
+
return addHeapObject(ret);
|
|
295
|
+
},
|
|
296
|
+
__wbg_from_74f3d90e0ff11240: function(arg0) {
|
|
297
|
+
const ret = Array.from(getObject(arg0));
|
|
298
|
+
return addHeapObject(ret);
|
|
299
|
+
},
|
|
300
|
+
__wbg_get_c0c8f8d7da0c03dd: function(arg0, arg1) {
|
|
301
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
302
|
+
return addHeapObject(ret);
|
|
303
|
+
},
|
|
304
|
+
__wbg_get_unchecked_e20b893aeafc3fca: function(arg0, arg1) {
|
|
305
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
306
|
+
return addHeapObject(ret);
|
|
307
|
+
},
|
|
308
|
+
__wbg_instanceof_Object_80ad464782e2bd73: function(arg0) {
|
|
309
|
+
let result;
|
|
310
|
+
try {
|
|
311
|
+
result = getObject(arg0) instanceof Object;
|
|
312
|
+
} catch (_) {
|
|
313
|
+
result = false;
|
|
314
|
+
}
|
|
315
|
+
const ret = result;
|
|
316
|
+
return ret;
|
|
317
|
+
},
|
|
318
|
+
__wbg_instanceof_Uint8Array_f935dbb0aa7cdeed: function(arg0) {
|
|
319
|
+
let result;
|
|
320
|
+
try {
|
|
321
|
+
result = getObject(arg0) instanceof Uint8Array;
|
|
322
|
+
} catch (_) {
|
|
323
|
+
result = false;
|
|
324
|
+
}
|
|
325
|
+
const ret = result;
|
|
326
|
+
return ret;
|
|
327
|
+
},
|
|
328
|
+
__wbg_length_36bd29c6848c2144: function(arg0) {
|
|
329
|
+
const ret = getObject(arg0).length;
|
|
330
|
+
return ret;
|
|
331
|
+
},
|
|
332
|
+
__wbg_length_ecfa2c63d3d0d82c: function(arg0) {
|
|
333
|
+
const ret = getObject(arg0).length;
|
|
334
|
+
return ret;
|
|
335
|
+
},
|
|
336
|
+
__wbg_prototypesetcall_de8e0d9553586985: function(arg0, arg1, arg2) {
|
|
337
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
338
|
+
},
|
|
339
|
+
__wbindgen_object_drop_ref: function(arg0) {
|
|
340
|
+
takeObject(arg0);
|
|
341
|
+
},
|
|
277
342
|
};
|
|
278
343
|
return {
|
|
279
344
|
__proto__: null,
|
|
@@ -296,6 +361,11 @@ function dropObject(idx) {
|
|
|
296
361
|
heap_next = idx;
|
|
297
362
|
}
|
|
298
363
|
|
|
364
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
365
|
+
ptr = ptr >>> 0;
|
|
366
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
367
|
+
}
|
|
368
|
+
|
|
299
369
|
let cachedDataViewMemory0 = null;
|
|
300
370
|
function getDataViewMemory0() {
|
|
301
371
|
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
@@ -323,6 +393,10 @@ heap.push(undefined, null, true, false);
|
|
|
323
393
|
|
|
324
394
|
let heap_next = heap.length;
|
|
325
395
|
|
|
396
|
+
function isLikeNone(x) {
|
|
397
|
+
return x === undefined || x === null;
|
|
398
|
+
}
|
|
399
|
+
|
|
326
400
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
327
401
|
if (realloc === undefined) {
|
|
328
402
|
const buf = cachedTextEncoder.encode(arg);
|
package/web/lini_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const compile: (a: number, b: number, c: number) => void;
|
|
5
|
-
export const compile_html: (a: number, b: number, c: number) => void;
|
|
6
|
-
export const compile_static: (a: number, b: number, c: number) => void;
|
|
4
|
+
export const compile: (a: number, b: number, c: number, d: number) => void;
|
|
5
|
+
export const compile_html: (a: number, b: number, c: number, d: number) => void;
|
|
6
|
+
export const compile_static: (a: number, b: number, c: number, d: number) => void;
|
|
7
7
|
export const desugar: (a: number, b: number, c: number) => void;
|
|
8
|
-
export const diagnostics: (a: number, b: number, c: number) => void;
|
|
8
|
+
export const diagnostics: (a: number, b: number, c: number, d: number) => void;
|
|
9
9
|
export const format: (a: number, b: number, c: number) => void;
|
|
10
10
|
export const highlight: (a: number, b: number, c: number) => void;
|
|
11
11
|
export const highlight_css: (a: number) => void;
|
|
12
12
|
export const version: (a: number) => void;
|
|
13
|
-
export const __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
14
13
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
15
14
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
15
|
+
export const __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
16
16
|
export const __wbindgen_export3: (a: number, b: number, c: number) => void;
|