Coder Social home page Coder Social logo

dart2wasm --debug flag not working about sdk HOT 2 CLOSED

Rexios80 avatar Rexios80 commented on August 22, 2024
dart2wasm --debug flag not working

from sdk.

Comments (2)

Rexios80 avatar Rexios80 commented on August 22, 2024 2

Yes you are correct. I will file an issue there instead. Thanks!

from sdk.

mkustermann avatar mkustermann commented on August 22, 2024

The --debug flag does not seem to work for dart2wasm either. That is probably the root cause of this

The Dart2Wasm compiler is only used for --profile / --release builds (just like Dart2JS). For iterative development the DDC compiler (which also compiles to JS) is used (or the VM's JIT). In the short term dart2wasm will not have a development compiler (with hot-restart / hot-reload).

That being said, one can use Dart2Wasm for profile/release builds and still enable assertions - via dart compile wasm --enable-asserts test.dart.

dart test ... is using package:test under the hood which doesn't seem to have a way to enable assertions when running under wasm - see package:test_core/src/runner/wasm_compiler_pool.dart.

@Rexios80 Is your main request to run tests with assertions enabled? In that case consider filing an issue at https://github.com/dart-lang/test instead.

/cc @kevmoo

from sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.