-1

I started a new Angular project (angular.core 16.1.0) with basically nothing in it just serve. In edge I have no issues but in Brave nothing appears and in the console I get

Uncaught SyntaxError: Unexpected token '=' vendor.js:51165

This is the line in vendor.js

              partialText = request.responseType === 'text' ? (partialText ?? '') + (decoder ??= new TextDecoder()).decode(value, {

Apparently ??= doesn't work. Brave tells me, it's up to date.

Does anyone have an idea what this might cause?

The example code on this site doesn't work either on brave https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing_assignment

rst
  • 2,510
  • 4
  • 21
  • 47
  • 1
    I'm using Brave and for me it's working. What version of Brave do you use? – JSON Derulo Jul 27 '23 at 06:42
  • This one, it sais when "About Brave" all up to date: Version 1.11.60 Chromium: 83.0.4103.97 (Official Build) (64-bit) – rst Jul 27 '23 at 06:44
  • 2
    Your Brave is heavily outdated. This feature was added with Chrome 85, so no wonder it's not working for you. We are already on Chrome 115. Something must be wrong with your Brave updater. Try re-installing. – JSON Derulo Jul 27 '23 at 06:45

1 Answers1

1

So apparently the update-functionallity doesn't really work on brave, even though it sais "up to date" it really wasn't at all. Just reinstall brave and it works.

rst
  • 2,510
  • 4
  • 21
  • 47