Coder Social home page Coder Social logo

Comments (6)

lrhn avatar lrhn commented on July 20, 2024 1

How do they behave differently?

If I check the the output of the second print (dart compile js using Dart SDK 3.5.0-43.0.dev for Dart2JS and dartpad.dev main channel, 3.4.0-190.0.dev, for DDC), they give the same numbers, so it's the same string and .codeUnits behaves the same.

Any difference would then be in how that string, containing weird code points, is displayed.
How is the code compiled and run, and how is the output displayed? (And how does it differ?)

(I have had problems with non-ASCII string literals before, when compiled into google3, because the source encoding wasn't respected. This CL failed to land because one of our web compilers generated a non-ASCII JavaScript string literal as UTF-8, and some internal processing took it as Latin-1, IIRC. Could be related to that.)

from sdk.

rakudrama avatar rakudrama commented on July 20, 2024

A test created from the example passes on all configurations: https://dart-review.googlesource.com/c/sdk/+/362700

from sdk.

vsmenon avatar vsmenon commented on July 20, 2024

Internal thread here: https://chat.google.com/room/AAAAS7MyFlc/6jkbFmEmEPo

Seems like something changed recently for that internal customer.

from sdk.

lrhn avatar lrhn commented on July 20, 2024

So it seems the bug is in google3, not in the compilers.

from sdk.

rakudrama avatar rakudrama commented on July 20, 2024

I think the test I uploaded demonstrates that there is no discrepancy in behaviour of the code generated by dart2js and DDC, and the problem is elsewhere, either serving with the wrong charset encoding, or processing the files in some way that 'evaluates' the \udba1 escape.

Can we close this as not reproducable?

from sdk.

vsmenon avatar vsmenon commented on July 20, 2024

Thanks, @rakudrama !

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.