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