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