The code in CheckEntryPoint provides a very cryptic message when it encounters a class that needs the entry point pragma #35170
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
The code in CheckEntryPoint in dart_api_impl.cc which checks that a class accessed using the C++ API has the vm entry point pragma produces a very cryptic crash message.
It would be nice if the message indicated which class was being accessed from which library so that the class could be easily fixed.
The code RELEASE_ASSERT(klass.has_pragma())
could be converted to an explicit check with an error message and a call to FATAL
The text was updated successfully, but these errors were encountered: