Closed Bug 1677433 Opened 5 years ago Closed 5 years ago

private fields and private methods

Categories

(Core :: JavaScript Engine, defect)

Firefox 82
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: holz1, Unassigned)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.193 Safari/537.36

Steps to reproduce:

Adding javascript.options.experimental.private_fields and javascript.options.experimental.private_methods is not working.

Actual results:

Still getting "Uncaught SyntaxError: private fields are not currently supported"

Expected results:

no error

Still getting "Uncaught SyntaxError: private fields are not currently supported"

How? Where? Please provide complete steps to reproduce.

Flags: needinfo?(holz1)
Flags: needinfo?(holz1)

with this program: see attached file: https://bugzilla.mozilla.org/attachment.cgi?id=9187985

On MacOS 10.14 on the latest Firefox Nightly after I set the prefs as mentioned in the description the results are: https://imgur.com/a/t2iSDjM
O MacOS 10.14 on the latest Firefox Nightly without setting the prefs the results are: https://imgur.com/a/ML99Kbf

On Windows 10 x64 on the latest Firefox Nightly with or without the prefs the results are as on Mac without the prefs: https://imgur.com/a/ML99Kbf

Is this the problem that you are facing?
Thanks.

Flags: needinfo?(holz1)

I still get this after setting the prefs: https://imgur.com/a/sQi0oye (Firefox 83, Windows 10).

Flags: needinfo?(holz1)

Its working in Firefox Nightly (85.0a1) https://imgur.com/a/Yv934x5

Component: Untriaged → JavaScript Engine
Product: Firefox → Core

As Tom says, these prefs are only active on Nightly, as the feature isn't quite ready to ship. We're waiting on improving the storage efficiency of private methods before we ship.

I'm going to mark this as RESOLVED/INVALID just because this is working as expected at the moment.

I'm hoping we can ship these soon too :)

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: