Skip to content

WebAssembly dry run warning in pdfx: default parameter initializers on static interop externals #610

@anthonymoretti

Description

@anthonymoretti

Describe the bug
When building Flutter web with wasm dry run enabled, pdfx reports warnings from pdfjs.dart about default parameter initializers on static interop external functions.

To Reproduce
Steps to reproduce the behavior:

  1. Create a Flutter app.
  2. Add pdfx: 2.9.2.
  3. Run flutter build web --no-tree-shake-icons.
  4. See warnings in package:pdfx/src/renderer/web/pdfjs.dart (around lines 136-138, 205-207): “Initializers for parameters are ignored on static interop external functions.”

Expected behavior
No wasm dry-run warnings from pdfx static interop declarations.

Smartphone (please complete the following information):

  • Device: N/A
  • OS: macOS
  • Version: Flutter 3.41.7, Dart 3.11.5, pdfx 2.9.2

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions