@@ -336,10 +336,13 @@ async function __wbg_init(module_or_path) {
336
336
if (wasm !== undefined) return wasm;
337
337
338
338
339
- if (typeof module_or_path !== 'undefined' && Object.getPrototypeOf(module_or_path) === Object.prototype)
340
- ({module_or_path} = module_or_path)
341
- else
342
- console.warn('using deprecated parameters for the initialization function; pass a single object instead')
339
+ if (typeof module_or_path !== 'undefined') {
340
+ if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
341
+ ({module_or_path} = module_or_path)
342
+ } else {
343
+ console.warn('using deprecated parameters for the initialization function; pass a single object instead')
344
+ }
345
+ }
343
346
344
347
if (typeof module_or_path === 'undefined') {
345
348
module_or_path = new URL('default_module_path_target_web_bg.wasm', import.meta.url);
@@ -371,10 +374,13 @@ fn default_module_path_target_no_modules() {
371
374
if (wasm !== undefined) return wasm;
372
375
373
376
374
- if (typeof module_or_path !== 'undefined' && Object.getPrototypeOf(module_or_path) === Object.prototype)
375
- ({module_or_path} = module_or_path)
376
- else
377
- console.warn('using deprecated parameters for the initialization function; pass a single object instead')
377
+ if (typeof module_or_path !== 'undefined') {
378
+ if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
379
+ ({module_or_path} = module_or_path)
380
+ } else {
381
+ console.warn('using deprecated parameters for the initialization function; pass a single object instead')
382
+ }
383
+ }
378
384
379
385
if (typeof module_or_path === 'undefined' && typeof script_src !== 'undefined') {
380
386
module_or_path = script_src.replace(/\\ .js$/, '_bg.wasm');
@@ -400,10 +406,13 @@ async function __wbg_init(module_or_path) {
400
406
if (wasm !== undefined) return wasm;
401
407
402
408
403
- if (typeof module_or_path !== 'undefined' && Object.getPrototypeOf(module_or_path) === Object.prototype)
404
- ({module_or_path} = module_or_path)
405
- else
406
- console.warn('using deprecated parameters for the initialization function; pass a single object instead')
409
+ if (typeof module_or_path !== 'undefined') {
410
+ if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
411
+ ({module_or_path} = module_or_path)
412
+ } else {
413
+ console.warn('using deprecated parameters for the initialization function; pass a single object instead')
414
+ }
415
+ }
407
416
408
417
409
418
const imports = __wbg_get_imports();" ,
@@ -428,10 +437,13 @@ fn omit_default_module_path_target_no_modules() {
428
437
if (wasm !== undefined) return wasm;
429
438
430
439
431
- if (typeof module_or_path !== 'undefined' && Object.getPrototypeOf(module_or_path) === Object.prototype)
432
- ({module_or_path} = module_or_path)
433
- else
434
- console.warn('using deprecated parameters for the initialization function; pass a single object instead')
440
+ if (typeof module_or_path !== 'undefined') {
441
+ if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
442
+ ({module_or_path} = module_or_path)
443
+ } else {
444
+ console.warn('using deprecated parameters for the initialization function; pass a single object instead')
445
+ }
446
+ }
435
447
436
448
437
449
const imports = __wbg_get_imports();" ,
0 commit comments