Comments (6)
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.
A test created from the example passes on all configurations: https://dart-review.googlesource.com/c/sdk/+/362700
from sdk.
Internal thread here: https://chat.google.com/room/AAAAS7MyFlc/6jkbFmEmEPo
Seems like something changed recently for that internal customer.
from sdk.
So it seems the bug is in google3, not in the compilers.
from sdk.
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.
Thanks, @rakudrama !
from sdk.
Related Issues (20)
- Unreachable code during SelectRepresentations HOT 1
- "Stop on uncaught exceptions" sometimes stops on caught exceptions HOT 4
- Improve thrown `FormatException` from `int.parse` when there is an "invalid radix-n" number HOT 1
- Very poor JIT performance with const Map<Type, ..> HOT 7
- DateTime.fromMillisecondsSinceEpoch constructor returns invalid time HOT 2
- Option in TFA to annotate inferred method return types, local variable types HOT 4
- Failed to build Dart SDK for arm with error: "cc1: error: β-mfloat-abi=hardβ: selected architecture lacks an FPU"
- Macro doesn't execute when defined in a project outside of analysis roots HOT 2
- Potential improvements to TypedData
- How to reference extension methods in macro generated code?
- [Wildcard Variables] [meta] Wildcard variables implementation
- `dart test` with `--pause-after-load` flag does not print DevTools URI HOT 4
- DDC lowers object literal/anonymous factory constructors using the invocation's ordering HOT 3
- Abstract classes with recurring generics could warn on creation of nullable type-solving impossibility HOT 4
- What should `OmittedTypeAnnotation.code` produce? HOT 5
- Frontend type checking error with differing flow control HOT 2
- [breaking change] Add the ability to control minimum TLS version in SecurityContext HOT 3
- [Wildcard Variables] Analyzer Implementation HOT 1
- [Wildcard Variables] Analysis Server Implementation
- Analyzer Feedback from IntelliJ HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdk.