For Firefox 75, we intend to ship JavaScript public static fields.

Summary: Public static fields in JavaScript classes.

For example:
class C {
  static a= 0;
}

Public instance fields have been shipping since Firefox 69. The intent to ship 
can be found at
<https://groups.google.com/forum/?_escaped_fragment_=topic/mozilla.dev.platform/GhSNChVLgZQ>.

Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1535804

Standard: https://github.com/tc39/proposal-static-class-features/

Platform coverage: All

Preference: None

DevTools bug: None, public static fields are already displayed just fine.

Other browsers: Shipping in Chrome 
<https://www.chromestatus.com/feature/6001727933251584>. In
progress in Safari <https://bugs.webkit.org/show_bug.cgi?id=194095>.

Tests: Covered in test262, the ECMAScript conformance test suite. In tree 
stored in
js/src/tests/test262, upstream repository is <https://github.com/tc39/test262>.

Secure contexts: JavaScript language features should be enabled everywhere.

Is this feature enabled by default in sandboxed iframes: Yes, because it 
doesn't affect sandboxing.

How stable is the spec: The public static fields part of the spec hasn't been 
modified in recent
months, so we don't expect any major changes to it. The private static fields 
part did receive some
changes, but that feature isn't yet implemented in Firefox.


- André

_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to