Dart_EvaluateExpr quietly truncates invalid expressions #13723
Labels
area-vm
Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends.
closed-obsolete
Closed as the reported issue is no longer relevant
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
In Dartium we have to wrap expression in parentheses to ensure only valid Dart expressions are allowed. Otherwise the DartVM will quietly ignore trailing Dart statements resulting in user confusion when part of the invalid expression they entered is ignored.
I will attach a CL with a simple test case reproducing this issue.
This isn't overly high priority as I have a pretty clean workaround (adding parens) but it would be nice to fix.
Example problem expressions
int x
"foo"; bar
The text was updated successfully, but these errors were encountered: