DDC lowers object literal/anonymous factory constructors using the invocation's ordering #55675
Labels
area-web
Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop.
web-dev-compiler
web-js-interop
Issues that impact all js interop
Given a declaration:
and an invocation:
DDC lowers the result in JS as
{b: 0, a: 0}
, whereas dart2wasm and dart2js lower it as{a: 0, b: 0}
, respecting the procedure's ordering instead.FWIW, I think DDC is correct here but, fixing the inconsistency in DDC here is likely less breaking.
This also applies to
@anonymous
factory lowerings.cc @nshahan
The text was updated successfully, but these errors were encountered: