Skip to content

Support running frontend server tests with sound null safety. #1591

Closed
@annagrin

Description

@annagrin

DWDS test infrastructure does not support executing tests with null safety mode using frontend server, since the null-safe dart_sdk.js file is non included in the dart sdk:

➜  dwds git:(master) ✗ ls ${HOME}/dart-sdk/lib/dev_compiler/kernel/amd
dart_sdk.js     dart_sdk.js.map require.js

Options for solutions:

  • include the dart_sdk_sound.js in the dart SDK
  • not rely on dart SDK JavaScript and source maps being included in the SDK and instead should investigate if we can produce them from the kernel file during the build (ddc_platform.dill and ddc_platform_sound.dill)
➜  dwds git:(annagrin/fix-locations-breakpoints) ✗ ls ${HOME}/dart-sdk/lib/_internal
allowed_experiments.json             ddc_platform_sound.dill              strong.sum
dart2js_platform.dill                ddc_sdk.dill                         vm
dart2js_platform_unsound.dill        fix_data.yaml                        vm_platform_strong.dill
dart2js_server_platform.dill         js_dev_runtime                       vm_platform_strong_product.dill
dart2js_server_platform_unsound.dill js_runtime                           wasm
ddc_outline_sound.dill               libraries.dart
ddc_platform.dill                    sdk_library_metadata

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions