@astral-sh/ruff-wasm-bundler 0.7.0 → 0.7.1
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/package.json +1 -1
- package/ruff_wasm_bg.js +142 -222
- package/ruff_wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/ruff_wasm_bg.js
CHANGED
|
@@ -4,26 +4,6 @@ export function __wbg_set_wasm(val) {
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
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 heap_next = heap.length;
|
|
14
|
-
|
|
15
|
-
function dropObject(idx) {
|
|
16
|
-
if (idx < 132) return;
|
|
17
|
-
heap[idx] = heap_next;
|
|
18
|
-
heap_next = idx;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function takeObject(idx) {
|
|
22
|
-
const ret = getObject(idx);
|
|
23
|
-
dropObject(idx);
|
|
24
|
-
return ret;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
7
|
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
|
28
8
|
|
|
29
9
|
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
@@ -44,15 +24,6 @@ function getStringFromWasm0(ptr, len) {
|
|
|
44
24
|
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
45
25
|
}
|
|
46
26
|
|
|
47
|
-
function addHeapObject(obj) {
|
|
48
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
49
|
-
const idx = heap_next;
|
|
50
|
-
heap_next = heap[idx];
|
|
51
|
-
|
|
52
|
-
heap[idx] = obj;
|
|
53
|
-
return idx;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
27
|
function isLikeNone(x) {
|
|
57
28
|
return x === undefined || x === null;
|
|
58
29
|
}
|
|
@@ -193,11 +164,26 @@ export function run() {
|
|
|
193
164
|
wasm.run();
|
|
194
165
|
}
|
|
195
166
|
|
|
167
|
+
function takeFromExternrefTable0(idx) {
|
|
168
|
+
const value = wasm.__wbindgen_export_2.get(idx);
|
|
169
|
+
wasm.__externref_table_dealloc(idx);
|
|
170
|
+
return value;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
function notDefined(what) { return () => { throw new Error(`${what} is not defined`); }; }
|
|
174
|
+
|
|
175
|
+
function addToExternrefTable0(obj) {
|
|
176
|
+
const idx = wasm.__externref_table_alloc();
|
|
177
|
+
wasm.__wbindgen_export_2.set(idx, obj);
|
|
178
|
+
return idx;
|
|
179
|
+
}
|
|
180
|
+
|
|
196
181
|
function handleError(f, args) {
|
|
197
182
|
try {
|
|
198
183
|
return f.apply(this, args);
|
|
199
184
|
} catch (e) {
|
|
200
|
-
|
|
185
|
+
const idx = addToExternrefTable0(e);
|
|
186
|
+
wasm.__wbindgen_exn_store(idx);
|
|
201
187
|
}
|
|
202
188
|
}
|
|
203
189
|
|
|
@@ -225,15 +211,11 @@ export class Workspace {
|
|
|
225
211
|
let deferred1_0;
|
|
226
212
|
let deferred1_1;
|
|
227
213
|
try {
|
|
228
|
-
const
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
deferred1_0 = r0;
|
|
233
|
-
deferred1_1 = r1;
|
|
234
|
-
return getStringFromWasm0(r0, r1);
|
|
214
|
+
const ret = wasm.workspace_version();
|
|
215
|
+
deferred1_0 = ret[0];
|
|
216
|
+
deferred1_1 = ret[1];
|
|
217
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
235
218
|
} finally {
|
|
236
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
237
219
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
238
220
|
}
|
|
239
221
|
}
|
|
@@ -241,60 +223,36 @@ export class Workspace {
|
|
|
241
223
|
* @param {any} options
|
|
242
224
|
*/
|
|
243
225
|
constructor(options) {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
248
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
249
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
250
|
-
if (r2) {
|
|
251
|
-
throw takeObject(r1);
|
|
252
|
-
}
|
|
253
|
-
this.__wbg_ptr = r0 >>> 0;
|
|
254
|
-
WorkspaceFinalization.register(this, this.__wbg_ptr, this);
|
|
255
|
-
return this;
|
|
256
|
-
} finally {
|
|
257
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
226
|
+
const ret = wasm.workspace_new(options);
|
|
227
|
+
if (ret[2]) {
|
|
228
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
258
229
|
}
|
|
230
|
+
this.__wbg_ptr = ret[0] >>> 0;
|
|
231
|
+
WorkspaceFinalization.register(this, this.__wbg_ptr, this);
|
|
232
|
+
return this;
|
|
259
233
|
}
|
|
260
234
|
/**
|
|
261
235
|
* @returns {any}
|
|
262
236
|
*/
|
|
263
237
|
static defaultSettings() {
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
268
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
269
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
270
|
-
if (r2) {
|
|
271
|
-
throw takeObject(r1);
|
|
272
|
-
}
|
|
273
|
-
return takeObject(r0);
|
|
274
|
-
} finally {
|
|
275
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
238
|
+
const ret = wasm.workspace_defaultSettings();
|
|
239
|
+
if (ret[2]) {
|
|
240
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
276
241
|
}
|
|
242
|
+
return takeFromExternrefTable0(ret[0]);
|
|
277
243
|
}
|
|
278
244
|
/**
|
|
279
245
|
* @param {string} contents
|
|
280
246
|
* @returns {any}
|
|
281
247
|
*/
|
|
282
248
|
check(contents) {
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
289
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
290
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
291
|
-
if (r2) {
|
|
292
|
-
throw takeObject(r1);
|
|
293
|
-
}
|
|
294
|
-
return takeObject(r0);
|
|
295
|
-
} finally {
|
|
296
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
249
|
+
const ptr0 = passStringToWasm0(contents, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
250
|
+
const len0 = WASM_VECTOR_LEN;
|
|
251
|
+
const ret = wasm.workspace_check(this.__wbg_ptr, ptr0, len0);
|
|
252
|
+
if (ret[2]) {
|
|
253
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
297
254
|
}
|
|
255
|
+
return takeFromExternrefTable0(ret[0]);
|
|
298
256
|
}
|
|
299
257
|
/**
|
|
300
258
|
* @param {string} contents
|
|
@@ -304,25 +262,19 @@ export class Workspace {
|
|
|
304
262
|
let deferred3_0;
|
|
305
263
|
let deferred3_1;
|
|
306
264
|
try {
|
|
307
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
308
265
|
const ptr0 = passStringToWasm0(contents, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
309
266
|
const len0 = WASM_VECTOR_LEN;
|
|
310
|
-
wasm.workspace_format(
|
|
311
|
-
var
|
|
312
|
-
var
|
|
313
|
-
|
|
314
|
-
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
315
|
-
var ptr2 = r0;
|
|
316
|
-
var len2 = r1;
|
|
317
|
-
if (r3) {
|
|
267
|
+
const ret = wasm.workspace_format(this.__wbg_ptr, ptr0, len0);
|
|
268
|
+
var ptr2 = ret[0];
|
|
269
|
+
var len2 = ret[1];
|
|
270
|
+
if (ret[3]) {
|
|
318
271
|
ptr2 = 0; len2 = 0;
|
|
319
|
-
throw
|
|
272
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
320
273
|
}
|
|
321
274
|
deferred3_0 = ptr2;
|
|
322
275
|
deferred3_1 = len2;
|
|
323
276
|
return getStringFromWasm0(ptr2, len2);
|
|
324
277
|
} finally {
|
|
325
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
326
278
|
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
327
279
|
}
|
|
328
280
|
}
|
|
@@ -334,25 +286,19 @@ export class Workspace {
|
|
|
334
286
|
let deferred3_0;
|
|
335
287
|
let deferred3_1;
|
|
336
288
|
try {
|
|
337
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
338
289
|
const ptr0 = passStringToWasm0(contents, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
339
290
|
const len0 = WASM_VECTOR_LEN;
|
|
340
|
-
wasm.workspace_format_ir(
|
|
341
|
-
var
|
|
342
|
-
var
|
|
343
|
-
|
|
344
|
-
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
345
|
-
var ptr2 = r0;
|
|
346
|
-
var len2 = r1;
|
|
347
|
-
if (r3) {
|
|
291
|
+
const ret = wasm.workspace_format_ir(this.__wbg_ptr, ptr0, len0);
|
|
292
|
+
var ptr2 = ret[0];
|
|
293
|
+
var len2 = ret[1];
|
|
294
|
+
if (ret[3]) {
|
|
348
295
|
ptr2 = 0; len2 = 0;
|
|
349
|
-
throw
|
|
296
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
350
297
|
}
|
|
351
298
|
deferred3_0 = ptr2;
|
|
352
299
|
deferred3_1 = len2;
|
|
353
300
|
return getStringFromWasm0(ptr2, len2);
|
|
354
301
|
} finally {
|
|
355
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
356
302
|
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
357
303
|
}
|
|
358
304
|
}
|
|
@@ -364,25 +310,19 @@ export class Workspace {
|
|
|
364
310
|
let deferred3_0;
|
|
365
311
|
let deferred3_1;
|
|
366
312
|
try {
|
|
367
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
368
313
|
const ptr0 = passStringToWasm0(contents, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
369
314
|
const len0 = WASM_VECTOR_LEN;
|
|
370
|
-
wasm.workspace_comments(
|
|
371
|
-
var
|
|
372
|
-
var
|
|
373
|
-
|
|
374
|
-
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
375
|
-
var ptr2 = r0;
|
|
376
|
-
var len2 = r1;
|
|
377
|
-
if (r3) {
|
|
315
|
+
const ret = wasm.workspace_comments(this.__wbg_ptr, ptr0, len0);
|
|
316
|
+
var ptr2 = ret[0];
|
|
317
|
+
var len2 = ret[1];
|
|
318
|
+
if (ret[3]) {
|
|
378
319
|
ptr2 = 0; len2 = 0;
|
|
379
|
-
throw
|
|
320
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
380
321
|
}
|
|
381
322
|
deferred3_0 = ptr2;
|
|
382
323
|
deferred3_1 = len2;
|
|
383
324
|
return getStringFromWasm0(ptr2, len2);
|
|
384
325
|
} finally {
|
|
385
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
386
326
|
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
387
327
|
}
|
|
388
328
|
}
|
|
@@ -395,25 +335,19 @@ export class Workspace {
|
|
|
395
335
|
let deferred3_0;
|
|
396
336
|
let deferred3_1;
|
|
397
337
|
try {
|
|
398
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
399
338
|
const ptr0 = passStringToWasm0(contents, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
400
339
|
const len0 = WASM_VECTOR_LEN;
|
|
401
|
-
wasm.workspace_parse(
|
|
402
|
-
var
|
|
403
|
-
var
|
|
404
|
-
|
|
405
|
-
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
406
|
-
var ptr2 = r0;
|
|
407
|
-
var len2 = r1;
|
|
408
|
-
if (r3) {
|
|
340
|
+
const ret = wasm.workspace_parse(this.__wbg_ptr, ptr0, len0);
|
|
341
|
+
var ptr2 = ret[0];
|
|
342
|
+
var len2 = ret[1];
|
|
343
|
+
if (ret[3]) {
|
|
409
344
|
ptr2 = 0; len2 = 0;
|
|
410
|
-
throw
|
|
345
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
411
346
|
}
|
|
412
347
|
deferred3_0 = ptr2;
|
|
413
348
|
deferred3_1 = len2;
|
|
414
349
|
return getStringFromWasm0(ptr2, len2);
|
|
415
350
|
} finally {
|
|
416
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
417
351
|
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
418
352
|
}
|
|
419
353
|
}
|
|
@@ -425,74 +359,59 @@ export class Workspace {
|
|
|
425
359
|
let deferred3_0;
|
|
426
360
|
let deferred3_1;
|
|
427
361
|
try {
|
|
428
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
429
362
|
const ptr0 = passStringToWasm0(contents, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
430
363
|
const len0 = WASM_VECTOR_LEN;
|
|
431
|
-
wasm.workspace_tokens(
|
|
432
|
-
var
|
|
433
|
-
var
|
|
434
|
-
|
|
435
|
-
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
436
|
-
var ptr2 = r0;
|
|
437
|
-
var len2 = r1;
|
|
438
|
-
if (r3) {
|
|
364
|
+
const ret = wasm.workspace_tokens(this.__wbg_ptr, ptr0, len0);
|
|
365
|
+
var ptr2 = ret[0];
|
|
366
|
+
var len2 = ret[1];
|
|
367
|
+
if (ret[3]) {
|
|
439
368
|
ptr2 = 0; len2 = 0;
|
|
440
|
-
throw
|
|
369
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
441
370
|
}
|
|
442
371
|
deferred3_0 = ptr2;
|
|
443
372
|
deferred3_1 = len2;
|
|
444
373
|
return getStringFromWasm0(ptr2, len2);
|
|
445
374
|
} finally {
|
|
446
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
447
375
|
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
448
376
|
}
|
|
449
377
|
}
|
|
450
378
|
}
|
|
451
379
|
|
|
452
|
-
export function __wbindgen_object_drop_ref(arg0) {
|
|
453
|
-
takeObject(arg0);
|
|
454
|
-
};
|
|
455
|
-
|
|
456
380
|
export function __wbindgen_is_string(arg0) {
|
|
457
|
-
const ret = typeof(
|
|
381
|
+
const ret = typeof(arg0) === 'string';
|
|
458
382
|
return ret;
|
|
459
383
|
};
|
|
460
384
|
|
|
461
385
|
export function __wbindgen_error_new(arg0, arg1) {
|
|
462
386
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
463
|
-
return
|
|
387
|
+
return ret;
|
|
464
388
|
};
|
|
465
389
|
|
|
466
390
|
export function __wbindgen_as_number(arg0) {
|
|
467
|
-
const ret = +
|
|
391
|
+
const ret = +arg0;
|
|
468
392
|
return ret;
|
|
469
393
|
};
|
|
470
394
|
|
|
471
|
-
export function __wbindgen_object_clone_ref(arg0) {
|
|
472
|
-
const ret = getObject(arg0);
|
|
473
|
-
return addHeapObject(ret);
|
|
474
|
-
};
|
|
475
|
-
|
|
476
395
|
export function __wbindgen_boolean_get(arg0) {
|
|
477
|
-
const v =
|
|
396
|
+
const v = arg0;
|
|
478
397
|
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
479
398
|
return ret;
|
|
480
399
|
};
|
|
481
400
|
|
|
482
401
|
export function __wbindgen_is_bigint(arg0) {
|
|
483
|
-
const ret = typeof(
|
|
402
|
+
const ret = typeof(arg0) === 'bigint';
|
|
484
403
|
return ret;
|
|
485
404
|
};
|
|
486
405
|
|
|
487
406
|
export function __wbindgen_number_get(arg0, arg1) {
|
|
488
|
-
const obj =
|
|
407
|
+
const obj = arg1;
|
|
489
408
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
490
409
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
491
410
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
492
411
|
};
|
|
493
412
|
|
|
494
413
|
export function __wbindgen_string_get(arg0, arg1) {
|
|
495
|
-
const obj =
|
|
414
|
+
const obj = arg1;
|
|
496
415
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
497
416
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
498
417
|
var len1 = WASM_VECTOR_LEN;
|
|
@@ -501,53 +420,53 @@ export function __wbindgen_string_get(arg0, arg1) {
|
|
|
501
420
|
};
|
|
502
421
|
|
|
503
422
|
export function __wbindgen_is_object(arg0) {
|
|
504
|
-
const val =
|
|
423
|
+
const val = arg0;
|
|
505
424
|
const ret = typeof(val) === 'object' && val !== null;
|
|
506
425
|
return ret;
|
|
507
426
|
};
|
|
508
427
|
|
|
509
428
|
export function __wbindgen_in(arg0, arg1) {
|
|
510
|
-
const ret =
|
|
429
|
+
const ret = arg0 in arg1;
|
|
511
430
|
return ret;
|
|
512
431
|
};
|
|
513
432
|
|
|
514
433
|
export function __wbindgen_bigint_from_i64(arg0) {
|
|
515
434
|
const ret = arg0;
|
|
516
|
-
return
|
|
435
|
+
return ret;
|
|
517
436
|
};
|
|
518
437
|
|
|
519
438
|
export function __wbindgen_jsval_eq(arg0, arg1) {
|
|
520
|
-
const ret =
|
|
439
|
+
const ret = arg0 === arg1;
|
|
521
440
|
return ret;
|
|
522
441
|
};
|
|
523
442
|
|
|
524
443
|
export function __wbindgen_bigint_from_u64(arg0) {
|
|
525
444
|
const ret = BigInt.asUintN(64, arg0);
|
|
526
|
-
return
|
|
445
|
+
return ret;
|
|
527
446
|
};
|
|
528
447
|
|
|
529
448
|
export function __wbindgen_is_undefined(arg0) {
|
|
530
|
-
const ret =
|
|
449
|
+
const ret = arg0 === undefined;
|
|
450
|
+
return ret;
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
export function __wbindgen_jsval_loose_eq(arg0, arg1) {
|
|
454
|
+
const ret = arg0 == arg1;
|
|
531
455
|
return ret;
|
|
532
456
|
};
|
|
533
457
|
|
|
534
458
|
export function __wbindgen_number_new(arg0) {
|
|
535
459
|
const ret = arg0;
|
|
536
|
-
return
|
|
460
|
+
return ret;
|
|
537
461
|
};
|
|
538
462
|
|
|
539
463
|
export function __wbindgen_string_new(arg0, arg1) {
|
|
540
464
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
541
|
-
return addHeapObject(ret);
|
|
542
|
-
};
|
|
543
|
-
|
|
544
|
-
export function __wbindgen_jsval_loose_eq(arg0, arg1) {
|
|
545
|
-
const ret = getObject(arg0) == getObject(arg1);
|
|
546
465
|
return ret;
|
|
547
466
|
};
|
|
548
467
|
|
|
549
468
|
export function __wbg_String_b9412f8799faab3e(arg0, arg1) {
|
|
550
|
-
const ret = String(
|
|
469
|
+
const ret = String(arg1);
|
|
551
470
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
552
471
|
const len1 = WASM_VECTOR_LEN;
|
|
553
472
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
@@ -555,41 +474,31 @@ export function __wbg_String_b9412f8799faab3e(arg0, arg1) {
|
|
|
555
474
|
};
|
|
556
475
|
|
|
557
476
|
export function __wbg_getwithrefkey_edc2c8960f0f1191(arg0, arg1) {
|
|
558
|
-
const ret =
|
|
559
|
-
return
|
|
477
|
+
const ret = arg0[arg1];
|
|
478
|
+
return ret;
|
|
560
479
|
};
|
|
561
480
|
|
|
562
481
|
export function __wbg_set_f975102236d3c502(arg0, arg1, arg2) {
|
|
563
|
-
|
|
482
|
+
arg0[arg1] = arg2;
|
|
564
483
|
};
|
|
565
484
|
|
|
566
|
-
export function
|
|
567
|
-
console.debug(getObject(arg0));
|
|
568
|
-
};
|
|
485
|
+
export const __wbg_debug_5fb96680aecf5dc8 = typeof console.debug == 'function' ? console.debug : notDefined('console.debug');
|
|
569
486
|
|
|
570
|
-
export function
|
|
571
|
-
console.error(getObject(arg0));
|
|
572
|
-
};
|
|
487
|
+
export const __wbg_error_8e3928cfb8a43e2b = typeof console.error == 'function' ? console.error : notDefined('console.error');
|
|
573
488
|
|
|
574
|
-
export function
|
|
575
|
-
console.info(getObject(arg0));
|
|
576
|
-
};
|
|
489
|
+
export const __wbg_info_530a29cb2e4e3304 = typeof console.info == 'function' ? console.info : notDefined('console.info');
|
|
577
490
|
|
|
578
|
-
export function
|
|
579
|
-
console.log(getObject(arg0));
|
|
580
|
-
};
|
|
491
|
+
export const __wbg_log_5bb5f88f245d7762 = typeof console.log == 'function' ? console.log : notDefined('console.log');
|
|
581
492
|
|
|
582
|
-
export function
|
|
583
|
-
console.warn(getObject(arg0));
|
|
584
|
-
};
|
|
493
|
+
export const __wbg_warn_63bbae1730aead09 = typeof console.warn == 'function' ? console.warn : notDefined('console.warn');
|
|
585
494
|
|
|
586
495
|
export function __wbg_new_abda76e883ba8a5f() {
|
|
587
496
|
const ret = new Error();
|
|
588
|
-
return
|
|
497
|
+
return ret;
|
|
589
498
|
};
|
|
590
499
|
|
|
591
500
|
export function __wbg_stack_658279fe44541cf6(arg0, arg1) {
|
|
592
|
-
const ret =
|
|
501
|
+
const ret = arg1.stack;
|
|
593
502
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
594
503
|
const len1 = WASM_VECTOR_LEN;
|
|
595
504
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
@@ -609,83 +518,83 @@ export function __wbg_error_f851667af71bcfc6(arg0, arg1) {
|
|
|
609
518
|
};
|
|
610
519
|
|
|
611
520
|
export function __wbindgen_is_function(arg0) {
|
|
612
|
-
const ret = typeof(
|
|
521
|
+
const ret = typeof(arg0) === 'function';
|
|
613
522
|
return ret;
|
|
614
523
|
};
|
|
615
524
|
|
|
616
525
|
export function __wbg_get_5419cf6b954aa11d(arg0, arg1) {
|
|
617
|
-
const ret =
|
|
618
|
-
return
|
|
526
|
+
const ret = arg0[arg1 >>> 0];
|
|
527
|
+
return ret;
|
|
619
528
|
};
|
|
620
529
|
|
|
621
530
|
export function __wbg_length_f217bbbf7e8e4df4(arg0) {
|
|
622
|
-
const ret =
|
|
531
|
+
const ret = arg0.length;
|
|
623
532
|
return ret;
|
|
624
533
|
};
|
|
625
534
|
|
|
626
535
|
export function __wbg_new_034f913e7636e987() {
|
|
627
536
|
const ret = new Array();
|
|
628
|
-
return
|
|
537
|
+
return ret;
|
|
629
538
|
};
|
|
630
539
|
|
|
631
540
|
export function __wbg_new_7a87a0376e40533b() {
|
|
632
541
|
const ret = new Map();
|
|
633
|
-
return
|
|
542
|
+
return ret;
|
|
634
543
|
};
|
|
635
544
|
|
|
636
545
|
export function __wbg_next_13b477da1eaa3897(arg0) {
|
|
637
|
-
const ret =
|
|
638
|
-
return
|
|
546
|
+
const ret = arg0.next;
|
|
547
|
+
return ret;
|
|
639
548
|
};
|
|
640
549
|
|
|
641
550
|
export function __wbg_next_b06e115d1b01e10b() { return handleError(function (arg0) {
|
|
642
|
-
const ret =
|
|
643
|
-
return
|
|
551
|
+
const ret = arg0.next();
|
|
552
|
+
return ret;
|
|
644
553
|
}, arguments) };
|
|
645
554
|
|
|
646
555
|
export function __wbg_done_983b5ffcaec8c583(arg0) {
|
|
647
|
-
const ret =
|
|
556
|
+
const ret = arg0.done;
|
|
648
557
|
return ret;
|
|
649
558
|
};
|
|
650
559
|
|
|
651
560
|
export function __wbg_value_2ab8a198c834c26a(arg0) {
|
|
652
|
-
const ret =
|
|
653
|
-
return
|
|
561
|
+
const ret = arg0.value;
|
|
562
|
+
return ret;
|
|
654
563
|
};
|
|
655
564
|
|
|
656
565
|
export function __wbg_iterator_695d699a44d6234c() {
|
|
657
566
|
const ret = Symbol.iterator;
|
|
658
|
-
return
|
|
567
|
+
return ret;
|
|
659
568
|
};
|
|
660
569
|
|
|
661
570
|
export function __wbg_get_ef828680c64da212() { return handleError(function (arg0, arg1) {
|
|
662
|
-
const ret = Reflect.get(
|
|
663
|
-
return
|
|
571
|
+
const ret = Reflect.get(arg0, arg1);
|
|
572
|
+
return ret;
|
|
664
573
|
}, arguments) };
|
|
665
574
|
|
|
666
575
|
export function __wbg_call_a9ef466721e824f2() { return handleError(function (arg0, arg1) {
|
|
667
|
-
const ret =
|
|
668
|
-
return
|
|
576
|
+
const ret = arg0.call(arg1);
|
|
577
|
+
return ret;
|
|
669
578
|
}, arguments) };
|
|
670
579
|
|
|
671
580
|
export function __wbg_new_e69b5f66fda8f13c() {
|
|
672
581
|
const ret = new Object();
|
|
673
|
-
return
|
|
582
|
+
return ret;
|
|
674
583
|
};
|
|
675
584
|
|
|
676
585
|
export function __wbg_set_425e70f7c64ac962(arg0, arg1, arg2) {
|
|
677
|
-
|
|
586
|
+
arg0[arg1 >>> 0] = arg2;
|
|
678
587
|
};
|
|
679
588
|
|
|
680
589
|
export function __wbg_isArray_6f3b47f09adb61b5(arg0) {
|
|
681
|
-
const ret = Array.isArray(
|
|
590
|
+
const ret = Array.isArray(arg0);
|
|
682
591
|
return ret;
|
|
683
592
|
};
|
|
684
593
|
|
|
685
594
|
export function __wbg_instanceof_ArrayBuffer_74945570b4a62ec7(arg0) {
|
|
686
595
|
let result;
|
|
687
596
|
try {
|
|
688
|
-
result =
|
|
597
|
+
result = arg0 instanceof ArrayBuffer;
|
|
689
598
|
} catch (_) {
|
|
690
599
|
result = false;
|
|
691
600
|
}
|
|
@@ -695,13 +604,13 @@ export function __wbg_instanceof_ArrayBuffer_74945570b4a62ec7(arg0) {
|
|
|
695
604
|
|
|
696
605
|
export function __wbg_new_70a2f23d1565c04c(arg0, arg1) {
|
|
697
606
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
698
|
-
return
|
|
607
|
+
return ret;
|
|
699
608
|
};
|
|
700
609
|
|
|
701
610
|
export function __wbg_instanceof_Map_f96986929e7e89ed(arg0) {
|
|
702
611
|
let result;
|
|
703
612
|
try {
|
|
704
|
-
result =
|
|
613
|
+
result = arg0 instanceof Map;
|
|
705
614
|
} catch (_) {
|
|
706
615
|
result = false;
|
|
707
616
|
}
|
|
@@ -710,48 +619,48 @@ export function __wbg_instanceof_Map_f96986929e7e89ed(arg0) {
|
|
|
710
619
|
};
|
|
711
620
|
|
|
712
621
|
export function __wbg_set_277a63e77c89279f(arg0, arg1, arg2) {
|
|
713
|
-
const ret =
|
|
714
|
-
return
|
|
622
|
+
const ret = arg0.set(arg1, arg2);
|
|
623
|
+
return ret;
|
|
715
624
|
};
|
|
716
625
|
|
|
717
626
|
export function __wbg_isSafeInteger_b9dff570f01a9100(arg0) {
|
|
718
|
-
const ret = Number.isSafeInteger(
|
|
627
|
+
const ret = Number.isSafeInteger(arg0);
|
|
719
628
|
return ret;
|
|
720
629
|
};
|
|
721
630
|
|
|
722
631
|
export function __wbg_entries_c02034de337d3ee2(arg0) {
|
|
723
|
-
const ret = Object.entries(
|
|
724
|
-
return
|
|
632
|
+
const ret = Object.entries(arg0);
|
|
633
|
+
return ret;
|
|
725
634
|
};
|
|
726
635
|
|
|
727
636
|
export function __wbg_fromCodePoint_a9176a674cd93db9() { return handleError(function (arg0) {
|
|
728
637
|
const ret = String.fromCodePoint(arg0 >>> 0);
|
|
729
|
-
return
|
|
638
|
+
return ret;
|
|
730
639
|
}, arguments) };
|
|
731
640
|
|
|
732
641
|
export function __wbg_buffer_ccaed51a635d8a2d(arg0) {
|
|
733
|
-
const ret =
|
|
734
|
-
return
|
|
642
|
+
const ret = arg0.buffer;
|
|
643
|
+
return ret;
|
|
735
644
|
};
|
|
736
645
|
|
|
737
646
|
export function __wbg_new_fec2611eb9180f95(arg0) {
|
|
738
|
-
const ret = new Uint8Array(
|
|
739
|
-
return
|
|
647
|
+
const ret = new Uint8Array(arg0);
|
|
648
|
+
return ret;
|
|
740
649
|
};
|
|
741
650
|
|
|
742
651
|
export function __wbg_set_ec2fcf81bc573fd9(arg0, arg1, arg2) {
|
|
743
|
-
|
|
652
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
744
653
|
};
|
|
745
654
|
|
|
746
655
|
export function __wbg_length_9254c4bd3b9f23c4(arg0) {
|
|
747
|
-
const ret =
|
|
656
|
+
const ret = arg0.length;
|
|
748
657
|
return ret;
|
|
749
658
|
};
|
|
750
659
|
|
|
751
660
|
export function __wbg_instanceof_Uint8Array_df0761410414ef36(arg0) {
|
|
752
661
|
let result;
|
|
753
662
|
try {
|
|
754
|
-
result =
|
|
663
|
+
result = arg0 instanceof Uint8Array;
|
|
755
664
|
} catch (_) {
|
|
756
665
|
result = false;
|
|
757
666
|
}
|
|
@@ -760,14 +669,14 @@ export function __wbg_instanceof_Uint8Array_df0761410414ef36(arg0) {
|
|
|
760
669
|
};
|
|
761
670
|
|
|
762
671
|
export function __wbindgen_bigint_get_as_i64(arg0, arg1) {
|
|
763
|
-
const v =
|
|
672
|
+
const v = arg1;
|
|
764
673
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
765
674
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
766
675
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
767
676
|
};
|
|
768
677
|
|
|
769
678
|
export function __wbindgen_debug_string(arg0, arg1) {
|
|
770
|
-
const ret = debugString(
|
|
679
|
+
const ret = debugString(arg1);
|
|
771
680
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
772
681
|
const len1 = WASM_VECTOR_LEN;
|
|
773
682
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
@@ -780,6 +689,17 @@ export function __wbindgen_throw(arg0, arg1) {
|
|
|
780
689
|
|
|
781
690
|
export function __wbindgen_memory() {
|
|
782
691
|
const ret = wasm.memory;
|
|
783
|
-
return
|
|
692
|
+
return ret;
|
|
693
|
+
};
|
|
694
|
+
|
|
695
|
+
export function __wbindgen_init_externref_table() {
|
|
696
|
+
const table = wasm.__wbindgen_export_2;
|
|
697
|
+
const offset = table.grow(4);
|
|
698
|
+
table.set(0, undefined);
|
|
699
|
+
table.set(offset + 0, undefined);
|
|
700
|
+
table.set(offset + 1, null);
|
|
701
|
+
table.set(offset + 2, true);
|
|
702
|
+
table.set(offset + 3, false);
|
|
703
|
+
;
|
|
784
704
|
};
|
|
785
705
|
|
package/ruff_wasm_bg.wasm
CHANGED
|
Binary file
|