question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug with a double question mark

See original GitHub issue

Hi, I found a bug with a double question mark “??” (opts.mode ?? 1)

Android 8/9 - uPlot.iife.min.js msg:“Uncaught SyntaxError: Unexpected token ?”, line:2, col:15438, stack:“SyntaxError: Unexpected token ?”

function uPlot(opts, data, then) { const self = { mode: opts.mode ?? 1, };

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
leeoniyacommented, Sep 25, 2021

i guess it’s that time of the year to have “that conversation” again.

@denyaalt first, please understand that i appreciate the issues you have opened in the past here, which have allowed me to improve the project for you and for others.

with that said…

There are many users who have old smartphones. It is very bad practice to add features that do not work on older smartphones…

your contributions to open source appear to pretty much end there.

  • you pay nothing to use uPlot
  • you have contributed no code to this project
  • your public profile shows you maintain no open source projects (never mind several high profile ones), nor provide free support or bug fixes to any others.

however, you seem to have a very strong opinion about how i should run uPlot and what browsers i need to support. that’s an amazing lack of perspective, and, frankly, respect. before you lecture me about supporting old tech, perhaps you can first finish working on https://github.com/leeoniya/uPlot/issues/474, or pick up another open issue here (just kidding, of course, i know this won’t happen). i maintain this project solo, i have 3 sponsors that total perhaps $10/mo, for a lib used by numerous multi-million $ businesses that pay me [drum roll]…$0. nice gig, right?

let’s talk about old browsers.

where in uPlot’s readme, demos, docs, or source code do you see any statement about browser support? i’ll save you some time: nowhere. the fact that it works at all in anything older than browsers released 6 months ago can be considered pure luck. as a single human being, with a finite amount of time, i’m not about to start testing uPlot in every fly-by-night version of every browser on every platform. your 2015 TV has some built-in browser based on IE8 that will never be updated? that’s truly unfortunate, but definitely your problem, and not mine.

There are many users who have old smartphones.

really? https://backlinko.com/browser-market-share

maybe, some of them should pay me to support them 🤷

i don’t deliver uPlot to end users, i deliver it to developers. if your users need old browser support, guess whose job it is to ensure that your code and your dependencies run through Babel with specific browser targets. the answer may not surprise you!

so, for the record:

uPlot runs in browsers that i can reasonably test and have a significant market share <today>. this typically means several prior versions of evergreen browsers, which are updated and fixed continuously. literally anything else may or may not require polyfills and/or Babel. if you have specific browser targets, it’s on you to guarantee this promise to your users.

0reactions
denyaaltcommented, Sep 25, 2021

Excuse me please… I just wanted to suggest not to use the new ES2020 features that we can easily do without…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Question Mark Butterfly - Insect Identification
The Question Mark could look like two separate butterflies if seen with its wings up and then its wings down. The edges of...
Read more >
Question Mark - Polygonia interrogationis - BugGuide.Net
In Austin, you only have two choices: Question Mark and Eastern Comma (which is rare). You can clearly see the double spot on...
Read more >
Two question marks instead of emoji · Issue #6676 - GitHub
Bug description. If a space is inserted after an emoji at the end of a line, sometimes two question marks are sent instead...
Read more >
double-question marks ?? in JQuery-posted AJAX causes errors
I've been able to reproduce this when trying to create a Version or Component in the project admin screens. Comments. Matt Quail.
Read more >
Uncomprehensible jQuery $.ajax() behavior when data ...
This problem only happens when there are two or more consecutive question marks in the value field inside the sent JSON object, even...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found