minijinja-js 2.8.0
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/README.md +82 -0
- package/dist/bundler/README.md +82 -0
- package/dist/bundler/minijinja_js.d.ts +89 -0
- package/dist/bundler/minijinja_js.js +4 -0
- package/dist/bundler/minijinja_js_bg.js +861 -0
- package/dist/bundler/minijinja_js_bg.wasm +0 -0
- package/dist/bundler/minijinja_js_bg.wasm.d.ts +34 -0
- package/dist/bundler/package.json +22 -0
- package/dist/node/README.md +82 -0
- package/dist/node/minijinja_js.d.ts +89 -0
- package/dist/node/minijinja_js.js +866 -0
- package/dist/node/minijinja_js_bg.wasm +0 -0
- package/dist/node/minijinja_js_bg.wasm.d.ts +34 -0
- package/dist/node/package.json +16 -0
- package/dist/web/README.md +82 -0
- package/dist/web/minijinja_js.d.ts +147 -0
- package/dist/web/minijinja_js.js +905 -0
- package/dist/web/minijinja_js_bg.wasm +0 -0
- package/dist/web/minijinja_js_bg.wasm.d.ts +34 -0
- package/dist/web/package.json +20 -0
- package/package.json +42 -0
|
@@ -0,0 +1,861 @@
|
|
|
1
|
+
let wasm;
|
|
2
|
+
export function __wbg_set_wasm(val) {
|
|
3
|
+
wasm = val;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
const heap = new Array(128).fill(undefined);
|
|
8
|
+
|
|
9
|
+
heap.push(undefined, null, true, false);
|
|
10
|
+
|
|
11
|
+
function getObject(idx) { return heap[idx]; }
|
|
12
|
+
|
|
13
|
+
let WASM_VECTOR_LEN = 0;
|
|
14
|
+
|
|
15
|
+
let cachedUint8ArrayMemory0 = null;
|
|
16
|
+
|
|
17
|
+
function getUint8ArrayMemory0() {
|
|
18
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
19
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
20
|
+
}
|
|
21
|
+
return cachedUint8ArrayMemory0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
|
|
25
|
+
|
|
26
|
+
let cachedTextEncoder = new lTextEncoder('utf-8');
|
|
27
|
+
|
|
28
|
+
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
29
|
+
? function (arg, view) {
|
|
30
|
+
return cachedTextEncoder.encodeInto(arg, view);
|
|
31
|
+
}
|
|
32
|
+
: function (arg, view) {
|
|
33
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
34
|
+
view.set(buf);
|
|
35
|
+
return {
|
|
36
|
+
read: arg.length,
|
|
37
|
+
written: buf.length
|
|
38
|
+
};
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
42
|
+
|
|
43
|
+
if (realloc === undefined) {
|
|
44
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
45
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
46
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
47
|
+
WASM_VECTOR_LEN = buf.length;
|
|
48
|
+
return ptr;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
let len = arg.length;
|
|
52
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
53
|
+
|
|
54
|
+
const mem = getUint8ArrayMemory0();
|
|
55
|
+
|
|
56
|
+
let offset = 0;
|
|
57
|
+
|
|
58
|
+
for (; offset < len; offset++) {
|
|
59
|
+
const code = arg.charCodeAt(offset);
|
|
60
|
+
if (code > 0x7F) break;
|
|
61
|
+
mem[ptr + offset] = code;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
if (offset !== len) {
|
|
65
|
+
if (offset !== 0) {
|
|
66
|
+
arg = arg.slice(offset);
|
|
67
|
+
}
|
|
68
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
69
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
70
|
+
const ret = encodeString(arg, view);
|
|
71
|
+
|
|
72
|
+
offset += ret.written;
|
|
73
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
WASM_VECTOR_LEN = offset;
|
|
77
|
+
return ptr;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
let cachedDataViewMemory0 = null;
|
|
81
|
+
|
|
82
|
+
function getDataViewMemory0() {
|
|
83
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
84
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
85
|
+
}
|
|
86
|
+
return cachedDataViewMemory0;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
let heap_next = heap.length;
|
|
90
|
+
|
|
91
|
+
function addHeapObject(obj) {
|
|
92
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
93
|
+
const idx = heap_next;
|
|
94
|
+
heap_next = heap[idx];
|
|
95
|
+
|
|
96
|
+
heap[idx] = obj;
|
|
97
|
+
return idx;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
function handleError(f, args) {
|
|
101
|
+
try {
|
|
102
|
+
return f.apply(this, args);
|
|
103
|
+
} catch (e) {
|
|
104
|
+
wasm.__wbindgen_export_2(addHeapObject(e));
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
|
109
|
+
|
|
110
|
+
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
111
|
+
|
|
112
|
+
cachedTextDecoder.decode();
|
|
113
|
+
|
|
114
|
+
function getStringFromWasm0(ptr, len) {
|
|
115
|
+
ptr = ptr >>> 0;
|
|
116
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
function dropObject(idx) {
|
|
120
|
+
if (idx < 132) return;
|
|
121
|
+
heap[idx] = heap_next;
|
|
122
|
+
heap_next = idx;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
function takeObject(idx) {
|
|
126
|
+
const ret = getObject(idx);
|
|
127
|
+
dropObject(idx);
|
|
128
|
+
return ret;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
function isLikeNone(x) {
|
|
132
|
+
return x === undefined || x === null;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
function debugString(val) {
|
|
136
|
+
// primitive types
|
|
137
|
+
const type = typeof val;
|
|
138
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
139
|
+
return `${val}`;
|
|
140
|
+
}
|
|
141
|
+
if (type == 'string') {
|
|
142
|
+
return `"${val}"`;
|
|
143
|
+
}
|
|
144
|
+
if (type == 'symbol') {
|
|
145
|
+
const description = val.description;
|
|
146
|
+
if (description == null) {
|
|
147
|
+
return 'Symbol';
|
|
148
|
+
} else {
|
|
149
|
+
return `Symbol(${description})`;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
if (type == 'function') {
|
|
153
|
+
const name = val.name;
|
|
154
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
155
|
+
return `Function(${name})`;
|
|
156
|
+
} else {
|
|
157
|
+
return 'Function';
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
// objects
|
|
161
|
+
if (Array.isArray(val)) {
|
|
162
|
+
const length = val.length;
|
|
163
|
+
let debug = '[';
|
|
164
|
+
if (length > 0) {
|
|
165
|
+
debug += debugString(val[0]);
|
|
166
|
+
}
|
|
167
|
+
for(let i = 1; i < length; i++) {
|
|
168
|
+
debug += ', ' + debugString(val[i]);
|
|
169
|
+
}
|
|
170
|
+
debug += ']';
|
|
171
|
+
return debug;
|
|
172
|
+
}
|
|
173
|
+
// Test for built-in
|
|
174
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
175
|
+
let className;
|
|
176
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
177
|
+
className = builtInMatches[1];
|
|
178
|
+
} else {
|
|
179
|
+
// Failed to match the standard '[object ClassName]'
|
|
180
|
+
return toString.call(val);
|
|
181
|
+
}
|
|
182
|
+
if (className == 'Object') {
|
|
183
|
+
// we're a user defined class or Object
|
|
184
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
185
|
+
// easier than looping through ownProperties of `val`.
|
|
186
|
+
try {
|
|
187
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
188
|
+
} catch (_) {
|
|
189
|
+
return 'Object';
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
// errors
|
|
193
|
+
if (val instanceof Error) {
|
|
194
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
195
|
+
}
|
|
196
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
197
|
+
return className;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
const __wbindgen_enum_UndefinedBehavior = ["strict", "chainable", "lenient", "semi_strct"];
|
|
201
|
+
|
|
202
|
+
const EnvironmentFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
203
|
+
? { register: () => {}, unregister: () => {} }
|
|
204
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_environment_free(ptr >>> 0, 1));
|
|
205
|
+
/**
|
|
206
|
+
* Represents a MiniJinja environment.
|
|
207
|
+
*/
|
|
208
|
+
export class Environment {
|
|
209
|
+
|
|
210
|
+
__destroy_into_raw() {
|
|
211
|
+
const ptr = this.__wbg_ptr;
|
|
212
|
+
this.__wbg_ptr = 0;
|
|
213
|
+
EnvironmentFinalization.unregister(this);
|
|
214
|
+
return ptr;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
free() {
|
|
218
|
+
const ptr = this.__destroy_into_raw();
|
|
219
|
+
wasm.__wbg_environment_free(ptr, 0);
|
|
220
|
+
}
|
|
221
|
+
constructor() {
|
|
222
|
+
const ret = wasm.environment_new();
|
|
223
|
+
this.__wbg_ptr = ret >>> 0;
|
|
224
|
+
EnvironmentFinalization.register(this, this.__wbg_ptr, this);
|
|
225
|
+
return this;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Registers a new template by name and source.
|
|
229
|
+
* @param {string} name
|
|
230
|
+
* @param {string} source
|
|
231
|
+
*/
|
|
232
|
+
addTemplate(name, source) {
|
|
233
|
+
try {
|
|
234
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
235
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
236
|
+
const len0 = WASM_VECTOR_LEN;
|
|
237
|
+
const ptr1 = passStringToWasm0(source, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
238
|
+
const len1 = WASM_VECTOR_LEN;
|
|
239
|
+
wasm.environment_addTemplate(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
240
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
241
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
242
|
+
if (r1) {
|
|
243
|
+
throw takeObject(r0);
|
|
244
|
+
}
|
|
245
|
+
} finally {
|
|
246
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* Removes a template by name.
|
|
251
|
+
* @param {string} name
|
|
252
|
+
*/
|
|
253
|
+
removeTemplate(name) {
|
|
254
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
255
|
+
const len0 = WASM_VECTOR_LEN;
|
|
256
|
+
wasm.environment_removeTemplate(this.__wbg_ptr, ptr0, len0);
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Clears all templates from the environment.
|
|
260
|
+
*/
|
|
261
|
+
clearTemplates() {
|
|
262
|
+
wasm.environment_clearTemplates(this.__wbg_ptr);
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Renders a registered template by name with the given context.
|
|
266
|
+
* @param {string} name
|
|
267
|
+
* @param {any} ctx
|
|
268
|
+
* @returns {string}
|
|
269
|
+
*/
|
|
270
|
+
renderTemplate(name, ctx) {
|
|
271
|
+
let deferred3_0;
|
|
272
|
+
let deferred3_1;
|
|
273
|
+
try {
|
|
274
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
275
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
276
|
+
const len0 = WASM_VECTOR_LEN;
|
|
277
|
+
wasm.environment_renderTemplate(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(ctx));
|
|
278
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
279
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
280
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
281
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
282
|
+
var ptr2 = r0;
|
|
283
|
+
var len2 = r1;
|
|
284
|
+
if (r3) {
|
|
285
|
+
ptr2 = 0; len2 = 0;
|
|
286
|
+
throw takeObject(r2);
|
|
287
|
+
}
|
|
288
|
+
deferred3_0 = ptr2;
|
|
289
|
+
deferred3_1 = len2;
|
|
290
|
+
return getStringFromWasm0(ptr2, len2);
|
|
291
|
+
} finally {
|
|
292
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
293
|
+
wasm.__wbindgen_export_3(deferred3_0, deferred3_1, 1);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Renders a string template with the given context.
|
|
298
|
+
*
|
|
299
|
+
* This is useful for one-off template rendering without registering the template. The
|
|
300
|
+
* template is parsed and rendered immediately.
|
|
301
|
+
* @param {string} source
|
|
302
|
+
* @param {any} ctx
|
|
303
|
+
* @returns {string}
|
|
304
|
+
*/
|
|
305
|
+
renderStr(source, ctx) {
|
|
306
|
+
let deferred3_0;
|
|
307
|
+
let deferred3_1;
|
|
308
|
+
try {
|
|
309
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
310
|
+
const ptr0 = passStringToWasm0(source, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
311
|
+
const len0 = WASM_VECTOR_LEN;
|
|
312
|
+
wasm.environment_renderStr(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(ctx));
|
|
313
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
314
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
315
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
316
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
317
|
+
var ptr2 = r0;
|
|
318
|
+
var len2 = r1;
|
|
319
|
+
if (r3) {
|
|
320
|
+
ptr2 = 0; len2 = 0;
|
|
321
|
+
throw takeObject(r2);
|
|
322
|
+
}
|
|
323
|
+
deferred3_0 = ptr2;
|
|
324
|
+
deferred3_1 = len2;
|
|
325
|
+
return getStringFromWasm0(ptr2, len2);
|
|
326
|
+
} finally {
|
|
327
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
328
|
+
wasm.__wbindgen_export_3(deferred3_0, deferred3_1, 1);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Like `renderStr` but with a named template for auto escape detection.
|
|
333
|
+
* @param {string} name
|
|
334
|
+
* @param {string} source
|
|
335
|
+
* @param {any} ctx
|
|
336
|
+
* @returns {string}
|
|
337
|
+
*/
|
|
338
|
+
renderNamedStr(name, source, ctx) {
|
|
339
|
+
let deferred4_0;
|
|
340
|
+
let deferred4_1;
|
|
341
|
+
try {
|
|
342
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
343
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
344
|
+
const len0 = WASM_VECTOR_LEN;
|
|
345
|
+
const ptr1 = passStringToWasm0(source, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
346
|
+
const len1 = WASM_VECTOR_LEN;
|
|
347
|
+
wasm.environment_renderNamedStr(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, addHeapObject(ctx));
|
|
348
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
349
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
350
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
351
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
352
|
+
var ptr3 = r0;
|
|
353
|
+
var len3 = r1;
|
|
354
|
+
if (r3) {
|
|
355
|
+
ptr3 = 0; len3 = 0;
|
|
356
|
+
throw takeObject(r2);
|
|
357
|
+
}
|
|
358
|
+
deferred4_0 = ptr3;
|
|
359
|
+
deferred4_1 = len3;
|
|
360
|
+
return getStringFromWasm0(ptr3, len3);
|
|
361
|
+
} finally {
|
|
362
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
363
|
+
wasm.__wbindgen_export_3(deferred4_0, deferred4_1, 1);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* Evaluates an expression with the given context.
|
|
368
|
+
*
|
|
369
|
+
* This is useful for evaluating expressions outside of templates. The expression is
|
|
370
|
+
* parsed and evaluated immediately.
|
|
371
|
+
* @param {string} expr
|
|
372
|
+
* @param {any} ctx
|
|
373
|
+
* @returns {any}
|
|
374
|
+
*/
|
|
375
|
+
evalExpr(expr, ctx) {
|
|
376
|
+
try {
|
|
377
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
378
|
+
const ptr0 = passStringToWasm0(expr, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
379
|
+
const len0 = WASM_VECTOR_LEN;
|
|
380
|
+
wasm.environment_evalExpr(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(ctx));
|
|
381
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
382
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
383
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
384
|
+
if (r2) {
|
|
385
|
+
throw takeObject(r1);
|
|
386
|
+
}
|
|
387
|
+
return takeObject(r0);
|
|
388
|
+
} finally {
|
|
389
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* Registers a filter function.
|
|
394
|
+
* @param {string} name
|
|
395
|
+
* @param {Function} func
|
|
396
|
+
*/
|
|
397
|
+
addFilter(name, func) {
|
|
398
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
399
|
+
const len0 = WASM_VECTOR_LEN;
|
|
400
|
+
wasm.environment_addFilter(this.__wbg_ptr, ptr0, len0, addHeapObject(func));
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* Registers a test function.
|
|
404
|
+
* @param {string} name
|
|
405
|
+
* @param {Function} func
|
|
406
|
+
*/
|
|
407
|
+
addTest(name, func) {
|
|
408
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
409
|
+
const len0 = WASM_VECTOR_LEN;
|
|
410
|
+
wasm.environment_addTest(this.__wbg_ptr, ptr0, len0, addHeapObject(func));
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* Enables python compatibility.
|
|
414
|
+
*/
|
|
415
|
+
enablePyCompat() {
|
|
416
|
+
wasm.environment_enablePyCompat(this.__wbg_ptr);
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* Enables or disables debug mode.
|
|
420
|
+
* @returns {boolean}
|
|
421
|
+
*/
|
|
422
|
+
get debug() {
|
|
423
|
+
const ret = wasm.environment_debug(this.__wbg_ptr);
|
|
424
|
+
return ret !== 0;
|
|
425
|
+
}
|
|
426
|
+
/**
|
|
427
|
+
* @param {boolean} yes
|
|
428
|
+
*/
|
|
429
|
+
set debug(yes) {
|
|
430
|
+
wasm.environment_set_debug(this.__wbg_ptr, yes);
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* Enables or disables block trimming.
|
|
434
|
+
* @returns {boolean}
|
|
435
|
+
*/
|
|
436
|
+
get trimBlocks() {
|
|
437
|
+
const ret = wasm.environment_trimBlocks(this.__wbg_ptr);
|
|
438
|
+
return ret !== 0;
|
|
439
|
+
}
|
|
440
|
+
/**
|
|
441
|
+
* @param {boolean} yes
|
|
442
|
+
*/
|
|
443
|
+
set trimBlocks(yes) {
|
|
444
|
+
wasm.environment_set_trimBlocks(this.__wbg_ptr, yes);
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* Enables or disables the lstrip blocks feature.
|
|
448
|
+
* @returns {boolean}
|
|
449
|
+
*/
|
|
450
|
+
get lstripBlocks() {
|
|
451
|
+
const ret = wasm.environment_lstripBlocks(this.__wbg_ptr);
|
|
452
|
+
return ret !== 0;
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* @param {boolean} yes
|
|
456
|
+
*/
|
|
457
|
+
set lstripBlocks(yes) {
|
|
458
|
+
wasm.environment_set_lstripBlocks(this.__wbg_ptr, yes);
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* Enables or disables keeping of the final newline.
|
|
462
|
+
* @returns {boolean}
|
|
463
|
+
*/
|
|
464
|
+
get keepTrailingNewline() {
|
|
465
|
+
const ret = wasm.environment_keepTrailingNewline(this.__wbg_ptr);
|
|
466
|
+
return ret !== 0;
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* @param {boolean} yes
|
|
470
|
+
*/
|
|
471
|
+
set keepTrailingNewline(yes) {
|
|
472
|
+
wasm.environment_set_keepTrailingNewline(this.__wbg_ptr, yes);
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
* Reconfigures the behavior of undefined variables.
|
|
476
|
+
* @returns {UndefinedBehavior}
|
|
477
|
+
*/
|
|
478
|
+
get undefinedBehavior() {
|
|
479
|
+
const ret = wasm.environment_undefinedBehavior(this.__wbg_ptr);
|
|
480
|
+
return __wbindgen_enum_UndefinedBehavior[ret];
|
|
481
|
+
}
|
|
482
|
+
/**
|
|
483
|
+
* @param {UndefinedBehavior} value
|
|
484
|
+
*/
|
|
485
|
+
set undefinedBehavior(value) {
|
|
486
|
+
try {
|
|
487
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
488
|
+
wasm.environment_set_undefinedBehavior(retptr, this.__wbg_ptr, (__wbindgen_enum_UndefinedBehavior.indexOf(value) + 1 || 5) - 1);
|
|
489
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
490
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
491
|
+
if (r1) {
|
|
492
|
+
throw takeObject(r0);
|
|
493
|
+
}
|
|
494
|
+
} finally {
|
|
495
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* Configures the max-fuel for template evaluation.
|
|
500
|
+
* @returns {number | undefined}
|
|
501
|
+
*/
|
|
502
|
+
get fuel() {
|
|
503
|
+
const ret = wasm.environment_fuel(this.__wbg_ptr);
|
|
504
|
+
return ret === 0x100000001 ? undefined : ret;
|
|
505
|
+
}
|
|
506
|
+
/**
|
|
507
|
+
* @param {number | null} [value]
|
|
508
|
+
*/
|
|
509
|
+
set fuel(value) {
|
|
510
|
+
wasm.environment_set_fuel(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
|
|
511
|
+
}
|
|
512
|
+
/**
|
|
513
|
+
* Registers a value as global.
|
|
514
|
+
* @param {string} name
|
|
515
|
+
* @param {any} value
|
|
516
|
+
*/
|
|
517
|
+
addGlobal(name, value) {
|
|
518
|
+
try {
|
|
519
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
520
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
521
|
+
const len0 = WASM_VECTOR_LEN;
|
|
522
|
+
wasm.environment_addGlobal(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(value));
|
|
523
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
524
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
525
|
+
if (r1) {
|
|
526
|
+
throw takeObject(r0);
|
|
527
|
+
}
|
|
528
|
+
} finally {
|
|
529
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
/**
|
|
533
|
+
* Removes a global again.
|
|
534
|
+
* @param {string} name
|
|
535
|
+
*/
|
|
536
|
+
removeGlobal(name) {
|
|
537
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
538
|
+
const len0 = WASM_VECTOR_LEN;
|
|
539
|
+
wasm.environment_removeGlobal(this.__wbg_ptr, ptr0, len0);
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
|
|
544
|
+
const ret = String(getObject(arg1));
|
|
545
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
546
|
+
const len1 = WASM_VECTOR_LEN;
|
|
547
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
548
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
549
|
+
};
|
|
550
|
+
|
|
551
|
+
export function __wbg_apply_36be6a55257c99bf() { return handleError(function (arg0, arg1, arg2) {
|
|
552
|
+
const ret = getObject(arg0).apply(getObject(arg1), getObject(arg2));
|
|
553
|
+
return addHeapObject(ret);
|
|
554
|
+
}, arguments) };
|
|
555
|
+
|
|
556
|
+
export function __wbg_buffer_609cc3eee51ed158(arg0) {
|
|
557
|
+
const ret = getObject(arg0).buffer;
|
|
558
|
+
return addHeapObject(ret);
|
|
559
|
+
};
|
|
560
|
+
|
|
561
|
+
export function __wbg_call_672a4d21634d4a24() { return handleError(function (arg0, arg1) {
|
|
562
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
563
|
+
return addHeapObject(ret);
|
|
564
|
+
}, arguments) };
|
|
565
|
+
|
|
566
|
+
export function __wbg_done_769e5ede4b31c67b(arg0) {
|
|
567
|
+
const ret = getObject(arg0).done;
|
|
568
|
+
return ret;
|
|
569
|
+
};
|
|
570
|
+
|
|
571
|
+
export function __wbg_entries_3265d4158b33e5dc(arg0) {
|
|
572
|
+
const ret = Object.entries(getObject(arg0));
|
|
573
|
+
return addHeapObject(ret);
|
|
574
|
+
};
|
|
575
|
+
|
|
576
|
+
export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
|
|
577
|
+
let deferred0_0;
|
|
578
|
+
let deferred0_1;
|
|
579
|
+
try {
|
|
580
|
+
deferred0_0 = arg0;
|
|
581
|
+
deferred0_1 = arg1;
|
|
582
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
583
|
+
} finally {
|
|
584
|
+
wasm.__wbindgen_export_3(deferred0_0, deferred0_1, 1);
|
|
585
|
+
}
|
|
586
|
+
};
|
|
587
|
+
|
|
588
|
+
export function __wbg_from_2a5d3e218e67aa85(arg0) {
|
|
589
|
+
const ret = Array.from(getObject(arg0));
|
|
590
|
+
return addHeapObject(ret);
|
|
591
|
+
};
|
|
592
|
+
|
|
593
|
+
export function __wbg_get_67b2ba62fc30de12() { return handleError(function (arg0, arg1) {
|
|
594
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
595
|
+
return addHeapObject(ret);
|
|
596
|
+
}, arguments) };
|
|
597
|
+
|
|
598
|
+
export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
|
|
599
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
600
|
+
return addHeapObject(ret);
|
|
601
|
+
};
|
|
602
|
+
|
|
603
|
+
export function __wbg_instanceof_ArrayBuffer_e14585432e3737fc(arg0) {
|
|
604
|
+
let result;
|
|
605
|
+
try {
|
|
606
|
+
result = getObject(arg0) instanceof ArrayBuffer;
|
|
607
|
+
} catch (_) {
|
|
608
|
+
result = false;
|
|
609
|
+
}
|
|
610
|
+
const ret = result;
|
|
611
|
+
return ret;
|
|
612
|
+
};
|
|
613
|
+
|
|
614
|
+
export function __wbg_instanceof_Map_f3469ce2244d2430(arg0) {
|
|
615
|
+
let result;
|
|
616
|
+
try {
|
|
617
|
+
result = getObject(arg0) instanceof Map;
|
|
618
|
+
} catch (_) {
|
|
619
|
+
result = false;
|
|
620
|
+
}
|
|
621
|
+
const ret = result;
|
|
622
|
+
return ret;
|
|
623
|
+
};
|
|
624
|
+
|
|
625
|
+
export function __wbg_instanceof_Uint8Array_17156bcf118086a9(arg0) {
|
|
626
|
+
let result;
|
|
627
|
+
try {
|
|
628
|
+
result = getObject(arg0) instanceof Uint8Array;
|
|
629
|
+
} catch (_) {
|
|
630
|
+
result = false;
|
|
631
|
+
}
|
|
632
|
+
const ret = result;
|
|
633
|
+
return ret;
|
|
634
|
+
};
|
|
635
|
+
|
|
636
|
+
export function __wbg_isArray_a1eab7e0d067391b(arg0) {
|
|
637
|
+
const ret = Array.isArray(getObject(arg0));
|
|
638
|
+
return ret;
|
|
639
|
+
};
|
|
640
|
+
|
|
641
|
+
export function __wbg_isSafeInteger_343e2beeeece1bb0(arg0) {
|
|
642
|
+
const ret = Number.isSafeInteger(getObject(arg0));
|
|
643
|
+
return ret;
|
|
644
|
+
};
|
|
645
|
+
|
|
646
|
+
export function __wbg_iterator_9a24c88df860dc65() {
|
|
647
|
+
const ret = Symbol.iterator;
|
|
648
|
+
return addHeapObject(ret);
|
|
649
|
+
};
|
|
650
|
+
|
|
651
|
+
export function __wbg_length_a446193dc22c12f8(arg0) {
|
|
652
|
+
const ret = getObject(arg0).length;
|
|
653
|
+
return ret;
|
|
654
|
+
};
|
|
655
|
+
|
|
656
|
+
export function __wbg_length_e2d2a49132c1b256(arg0) {
|
|
657
|
+
const ret = getObject(arg0).length;
|
|
658
|
+
return ret;
|
|
659
|
+
};
|
|
660
|
+
|
|
661
|
+
export function __wbg_new_405e22f390576ce2() {
|
|
662
|
+
const ret = new Object();
|
|
663
|
+
return addHeapObject(ret);
|
|
664
|
+
};
|
|
665
|
+
|
|
666
|
+
export function __wbg_new_5e0be73521bc8c17() {
|
|
667
|
+
const ret = new Map();
|
|
668
|
+
return addHeapObject(ret);
|
|
669
|
+
};
|
|
670
|
+
|
|
671
|
+
export function __wbg_new_78feb108b6472713() {
|
|
672
|
+
const ret = new Array();
|
|
673
|
+
return addHeapObject(ret);
|
|
674
|
+
};
|
|
675
|
+
|
|
676
|
+
export function __wbg_new_8a6f238a6ece86ea() {
|
|
677
|
+
const ret = new Error();
|
|
678
|
+
return addHeapObject(ret);
|
|
679
|
+
};
|
|
680
|
+
|
|
681
|
+
export function __wbg_new_a12002a7f91c75be(arg0) {
|
|
682
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
683
|
+
return addHeapObject(ret);
|
|
684
|
+
};
|
|
685
|
+
|
|
686
|
+
export function __wbg_newwithbyteoffsetandlength_d97e637ebe145a9a(arg0, arg1, arg2) {
|
|
687
|
+
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
688
|
+
return addHeapObject(ret);
|
|
689
|
+
};
|
|
690
|
+
|
|
691
|
+
export function __wbg_next_25feadfc0913fea9(arg0) {
|
|
692
|
+
const ret = getObject(arg0).next;
|
|
693
|
+
return addHeapObject(ret);
|
|
694
|
+
};
|
|
695
|
+
|
|
696
|
+
export function __wbg_next_6574e1a8a62d1055() { return handleError(function (arg0) {
|
|
697
|
+
const ret = getObject(arg0).next();
|
|
698
|
+
return addHeapObject(ret);
|
|
699
|
+
}, arguments) };
|
|
700
|
+
|
|
701
|
+
export function __wbg_push_737cfc8c1432c2c6(arg0, arg1) {
|
|
702
|
+
const ret = getObject(arg0).push(getObject(arg1));
|
|
703
|
+
return ret;
|
|
704
|
+
};
|
|
705
|
+
|
|
706
|
+
export function __wbg_set_37837023f3d740e8(arg0, arg1, arg2) {
|
|
707
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
708
|
+
};
|
|
709
|
+
|
|
710
|
+
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
711
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
712
|
+
};
|
|
713
|
+
|
|
714
|
+
export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
|
|
715
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
716
|
+
};
|
|
717
|
+
|
|
718
|
+
export function __wbg_set_8fc6bf8a5b1071d1(arg0, arg1, arg2) {
|
|
719
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
720
|
+
return addHeapObject(ret);
|
|
721
|
+
};
|
|
722
|
+
|
|
723
|
+
export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
|
|
724
|
+
const ret = getObject(arg1).stack;
|
|
725
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
726
|
+
const len1 = WASM_VECTOR_LEN;
|
|
727
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
728
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
729
|
+
};
|
|
730
|
+
|
|
731
|
+
export function __wbg_value_cd1ffa7b1ab794f1(arg0) {
|
|
732
|
+
const ret = getObject(arg0).value;
|
|
733
|
+
return addHeapObject(ret);
|
|
734
|
+
};
|
|
735
|
+
|
|
736
|
+
export function __wbindgen_bigint_from_i128(arg0, arg1) {
|
|
737
|
+
const ret = arg0 << BigInt(64) | BigInt.asUintN(64, arg1);
|
|
738
|
+
return addHeapObject(ret);
|
|
739
|
+
};
|
|
740
|
+
|
|
741
|
+
export function __wbindgen_bigint_from_i64(arg0) {
|
|
742
|
+
const ret = arg0;
|
|
743
|
+
return addHeapObject(ret);
|
|
744
|
+
};
|
|
745
|
+
|
|
746
|
+
export function __wbindgen_bigint_from_u128(arg0, arg1) {
|
|
747
|
+
const ret = BigInt.asUintN(64, arg0) << BigInt(64) | BigInt.asUintN(64, arg1);
|
|
748
|
+
return addHeapObject(ret);
|
|
749
|
+
};
|
|
750
|
+
|
|
751
|
+
export function __wbindgen_bigint_from_u64(arg0) {
|
|
752
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
753
|
+
return addHeapObject(ret);
|
|
754
|
+
};
|
|
755
|
+
|
|
756
|
+
export function __wbindgen_bigint_get_as_i64(arg0, arg1) {
|
|
757
|
+
const v = getObject(arg1);
|
|
758
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
759
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
760
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
761
|
+
};
|
|
762
|
+
|
|
763
|
+
export function __wbindgen_boolean_get(arg0) {
|
|
764
|
+
const v = getObject(arg0);
|
|
765
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
766
|
+
return ret;
|
|
767
|
+
};
|
|
768
|
+
|
|
769
|
+
export function __wbindgen_debug_string(arg0, arg1) {
|
|
770
|
+
const ret = debugString(getObject(arg1));
|
|
771
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
772
|
+
const len1 = WASM_VECTOR_LEN;
|
|
773
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
774
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
775
|
+
};
|
|
776
|
+
|
|
777
|
+
export function __wbindgen_error_new(arg0, arg1) {
|
|
778
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
779
|
+
return addHeapObject(ret);
|
|
780
|
+
};
|
|
781
|
+
|
|
782
|
+
export function __wbindgen_in(arg0, arg1) {
|
|
783
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
784
|
+
return ret;
|
|
785
|
+
};
|
|
786
|
+
|
|
787
|
+
export function __wbindgen_is_array(arg0) {
|
|
788
|
+
const ret = Array.isArray(getObject(arg0));
|
|
789
|
+
return ret;
|
|
790
|
+
};
|
|
791
|
+
|
|
792
|
+
export function __wbindgen_is_bigint(arg0) {
|
|
793
|
+
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
794
|
+
return ret;
|
|
795
|
+
};
|
|
796
|
+
|
|
797
|
+
export function __wbindgen_is_function(arg0) {
|
|
798
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
|
799
|
+
return ret;
|
|
800
|
+
};
|
|
801
|
+
|
|
802
|
+
export function __wbindgen_is_object(arg0) {
|
|
803
|
+
const val = getObject(arg0);
|
|
804
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
805
|
+
return ret;
|
|
806
|
+
};
|
|
807
|
+
|
|
808
|
+
export function __wbindgen_is_string(arg0) {
|
|
809
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
810
|
+
return ret;
|
|
811
|
+
};
|
|
812
|
+
|
|
813
|
+
export function __wbindgen_jsval_eq(arg0, arg1) {
|
|
814
|
+
const ret = getObject(arg0) === getObject(arg1);
|
|
815
|
+
return ret;
|
|
816
|
+
};
|
|
817
|
+
|
|
818
|
+
export function __wbindgen_jsval_loose_eq(arg0, arg1) {
|
|
819
|
+
const ret = getObject(arg0) == getObject(arg1);
|
|
820
|
+
return ret;
|
|
821
|
+
};
|
|
822
|
+
|
|
823
|
+
export function __wbindgen_memory() {
|
|
824
|
+
const ret = wasm.memory;
|
|
825
|
+
return addHeapObject(ret);
|
|
826
|
+
};
|
|
827
|
+
|
|
828
|
+
export function __wbindgen_number_get(arg0, arg1) {
|
|
829
|
+
const obj = getObject(arg1);
|
|
830
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
831
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
832
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
833
|
+
};
|
|
834
|
+
|
|
835
|
+
export function __wbindgen_number_new(arg0) {
|
|
836
|
+
const ret = arg0;
|
|
837
|
+
return addHeapObject(ret);
|
|
838
|
+
};
|
|
839
|
+
|
|
840
|
+
export function __wbindgen_object_drop_ref(arg0) {
|
|
841
|
+
takeObject(arg0);
|
|
842
|
+
};
|
|
843
|
+
|
|
844
|
+
export function __wbindgen_string_get(arg0, arg1) {
|
|
845
|
+
const obj = getObject(arg1);
|
|
846
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
847
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
848
|
+
var len1 = WASM_VECTOR_LEN;
|
|
849
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
850
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
851
|
+
};
|
|
852
|
+
|
|
853
|
+
export function __wbindgen_string_new(arg0, arg1) {
|
|
854
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
855
|
+
return addHeapObject(ret);
|
|
856
|
+
};
|
|
857
|
+
|
|
858
|
+
export function __wbindgen_throw(arg0, arg1) {
|
|
859
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
860
|
+
};
|
|
861
|
+
|